From d2b70655a7998f1d863685c47421d960d0674834 Mon Sep 17 00:00:00 2001 From: thinedave Date: Wed, 13 Dec 2023 15:43:27 -0800 Subject: [PATCH] Remove all hardcoded Tooltip.AddTooltip() calls --- Assets/Scripts/LevelEditor/Editor.cs | 20 +-------------- Assets/Scripts/LevelEditor/EditorTheme.cs | 4 --- .../Scripts/LevelEditor/Timeline/Timeline.cs | 25 ------------------- 3 files changed, 1 insertion(+), 48 deletions(-) diff --git a/Assets/Scripts/LevelEditor/Editor.cs b/Assets/Scripts/LevelEditor/Editor.cs index ee635424d..3de6cb376 100644 --- a/Assets/Scripts/LevelEditor/Editor.cs +++ b/Assets/Scripts/LevelEditor/Editor.cs @@ -108,25 +108,7 @@ namespace HeavenStudio.Editor foreach (var minigame in EventCaller.instance.minigames) AddIcon(minigame); - - Tooltip.AddTooltip(NewBTN.gameObject, "New [Ctrl+N]"); - Tooltip.AddTooltip(OpenBTN.gameObject, "Open [Ctrl+O]"); - Tooltip.AddTooltip(SaveBTN.gameObject, "Save Project [Ctrl+S]\nSave Project As [Ctrl+Alt+S]"); - Tooltip.AddTooltip(UndoBTN.gameObject, "Undo [Ctrl+Z]"); - Tooltip.AddTooltip(RedoBTN.gameObject, "Redo [Ctrl+Y or Ctrl+Shift+Z]"); - Tooltip.AddTooltip(CopyBTN.gameObject, "Copy [Ctrl+C]"); - Tooltip.AddTooltip(PasteBTN.gameObject, "Paste [Ctrl+V]"); - Tooltip.AddTooltip(MusicSelectBTN.gameObject, "Music Select"); - Tooltip.AddTooltip(FullScreenBTN.gameObject, "Preview [Tab]"); - Tooltip.AddTooltip(TempoFinderBTN.gameObject, "Tempo Finder"); - Tooltip.AddTooltip(SnapDiagBTN.gameObject, "Snap Settings"); - Tooltip.AddTooltip(ChartParamBTN.gameObject, "Remix Properties"); - Tooltip.AddTooltip(SortAlphabetBTN.gameObject, "Sort Alphabetically"); - Tooltip.AddTooltip(SortFavoritesBTN.gameObject, "Sort By Favorite"); - Tooltip.AddTooltip(SortChronologicBTN.gameObject, "Sort Chronologically"); - Tooltip.AddTooltip(SearchBar.gameObject, "Search Games"); - - Tooltip.AddTooltip(EditorSettingsBTN.gameObject, "Editor Settings [Ctrl+Shift+O]"); + UpdateEditorStatus(true); BuildDateDisplay.text = GlobalGameManager.buildTime; diff --git a/Assets/Scripts/LevelEditor/EditorTheme.cs b/Assets/Scripts/LevelEditor/EditorTheme.cs index f167a777a..dc79c4120 100644 --- a/Assets/Scripts/LevelEditor/EditorTheme.cs +++ b/Assets/Scripts/LevelEditor/EditorTheme.cs @@ -70,10 +70,6 @@ namespace HeavenStudio.Editor tempoLayer.GetComponent().color = theme.properties.TempoLayerCol.Hex2RGB(); musicLayer.GetComponent().color = theme.properties.MusicLayerCol.Hex2RGB(); sectionLayer.GetComponent().color = theme.properties.SectionLayerCol.Hex2RGB(); - Tooltip.AddTooltip(specialLayers.gameObject, $"All Special Tracks"); - Tooltip.AddTooltip(tempoLayer.gameObject, $"Tempo Track"); - Tooltip.AddTooltip(musicLayer.gameObject, $"Music Volume Track"); - Tooltip.AddTooltip(sectionLayer.gameObject, $"Remix Sections Track"); layer.gameObject.SetActive(false); diff --git a/Assets/Scripts/LevelEditor/Timeline/Timeline.cs b/Assets/Scripts/LevelEditor/Timeline/Timeline.cs index ff753e358..36ac915ed 100644 --- a/Assets/Scripts/LevelEditor/Timeline/Timeline.cs +++ b/Assets/Scripts/LevelEditor/Timeline/Timeline.cs @@ -310,33 +310,8 @@ namespace HeavenStudio.Editor.Track WaveformToggle(); }); - Tooltip.AddTooltip(SongBeat.gameObject, "Current Beat"); - Tooltip.AddTooltip(SongPos.gameObject, "Current Time"); - Tooltip.AddTooltip(CurrentTempo.gameObject, "Current Tempo (BPM)"); - - Tooltip.AddTooltip(PlayBTN.gameObject, "Play [Space]"); - Tooltip.AddTooltip(PauseBTN.gameObject, "Pause [Shift + Space]"); - Tooltip.AddTooltip(StopBTN.gameObject, "Stop [Space]"); - - Tooltip.AddTooltip(MetronomeBTN.gameObject, "Metronome [M]"); - Tooltip.AddTooltip(AutoplayBTN.gameObject, "Autoplay [P]"); - - Tooltip.AddTooltip(SelectionsBTN.gameObject, "Tool: Selection [1]"); - Tooltip.AddTooltip(TempoChangeBTN.gameObject, "Tool: Tempo Change [2]"); - Tooltip.AddTooltip(MusicVolumeBTN.gameObject, "Tool: Music Volume [3]"); - Tooltip.AddTooltip(ChartSectionBTN.gameObject, "Tool: Beatmap Sections [4]"); - - Tooltip.AddTooltip(StartingTempoSpecialAll.gameObject, "Starting Tempo (BPM)"); - Tooltip.AddTooltip(StartingTempoSpecialTempo.gameObject, "Starting Tempo (BPM)"); - Tooltip.AddTooltip(StartingVolumeSpecialVolume.gameObject, "Starting Volume (%)"); - - Tooltip.AddTooltip(ZoomInBTN.gameObject, "Zoom In"); - Tooltip.AddTooltip(ZoomOutBTN.gameObject, "Zoom Out"); - Tooltip.AddTooltip(ZoomResetBTN.gameObject, "Zoom Reset"); Tooltip.AddTooltip(WaveformBTN.gameObject, "Waveform Toggle"); - Tooltip.AddTooltip(PlaybackSpeed.gameObject, "The preview's playback speed. Right click to reset to 1.0"); - SetTimeButtonColors(true, false, false); MetronomeBTN.transform.GetChild(0).GetComponent().color = Color.gray; MetronomeBTN.transform.GetChild(1).GetComponent().color = Color.gray;