Add the ability to toggle off hit marker displays in the editor

This commit is contained in:
Dean Herbert
2022-11-08 18:07:06 +09:00
parent 30700ee68b
commit ada039151b
5 changed files with 59 additions and 15 deletions

View File

@ -176,6 +176,7 @@ namespace osu.Game.Screens.Edit
private OnScreenDisplay onScreenDisplay { get; set; }
private Bindable<float> editorBackgroundDim;
private Bindable<bool> editorHitMarkers;
public Editor(EditorLoader loader = null)
{
@ -262,6 +263,7 @@ namespace osu.Game.Screens.Edit
OsuMenuItem redoMenuItem;
editorBackgroundDim = config.GetBindable<float>(OsuSetting.EditorDim);
editorHitMarkers = config.GetBindable<bool>(OsuSetting.EditorShowHitMarkers);
AddInternal(new OsuContextMenuContainer
{
@ -316,6 +318,10 @@ namespace osu.Game.Screens.Edit
{
new WaveformOpacityMenuItem(config.GetBindable<float>(OsuSetting.EditorWaveformOpacity)),
new BackgroundDimMenuItem(editorBackgroundDim),
new ToggleMenuItem("Show hit markers")
{
State = { BindTarget = editorHitMarkers },
}
}
}
}