1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-10 01:12:56 +08:00

Remove hide sample toggle

In line with feedback from
https://github.com/ppy/osu/pull/29896#issuecomment-2378676851.
This commit is contained in:
Bartłomiej Dach 2024-11-01 18:36:01 +01:00
parent eb61da4232
commit 8f48682d0a
No known key found for this signature in database
4 changed files with 0 additions and 18 deletions

View File

@ -205,7 +205,6 @@ namespace osu.Game.Configuration
SetDefault(OsuSetting.EditorTimelineShowTimingChanges, true);
SetDefault(OsuSetting.EditorTimelineShowTicks, true);
SetDefault(OsuSetting.EditorTimelineShowSamples, true);
SetDefault(OsuSetting.AlwaysShowHoldForMenuButton, false);
}
@ -433,6 +432,5 @@ namespace osu.Game.Configuration
EditorTimelineShowTimingChanges,
EditorTimelineShowTicks,
AlwaysShowHoldForMenuButton,
EditorTimelineShowSamples
}
}

View File

@ -139,11 +139,6 @@ namespace osu.Game.Localisation
/// </summary>
public static LocalisableString TimelineShowTicks => new TranslatableString(getKey(@"timeline_show_ticks"), @"Show ticks");
/// <summary>
/// "Show samples"
/// </summary>
public static LocalisableString TimelineShowSamples => new TranslatableString(getKey(@"timeline_show_samples"), @"Show samples");
private static string getKey(string key) => $@"{prefix}:{key}";
}
}

View File

@ -44,8 +44,6 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
[Resolved]
private TimelineBlueprintContainer? timelineBlueprintContainer { get; set; }
private Bindable<bool> samplesVisible = null!;
public SamplePointPiece(HitObject hitObject)
{
HitObject = hitObject;
@ -68,8 +66,6 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
if (editor != null)
editor.ShowSampleEditPopoverRequested += onShowSampleEditPopoverRequested;
samplesVisible = config.GetBindable<bool>(OsuSetting.EditorTimelineShowSamples);
}
private readonly Bindable<bool> contracted = new Bindable<bool>();
@ -97,7 +93,6 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
}
}, true);
samplesVisible.BindValueChanged(visible => this.FadeTo(visible.NewValue ? 1 : 0, 200, Easing.OutQuint), true);
FinishTransforms();
}

View File

@ -215,7 +215,6 @@ namespace osu.Game.Screens.Edit
private Bindable<bool> editorLimitedDistanceSnap;
private Bindable<bool> editorTimelineShowTimingChanges;
private Bindable<bool> editorTimelineShowTicks;
private Bindable<bool> editorTimelineShowSamples;
/// <summary>
/// This controls the opacity of components like the timelines, sidebars, etc.
@ -324,7 +323,6 @@ namespace osu.Game.Screens.Edit
editorLimitedDistanceSnap = config.GetBindable<bool>(OsuSetting.EditorLimitedDistanceSnap);
editorTimelineShowTimingChanges = config.GetBindable<bool>(OsuSetting.EditorTimelineShowTimingChanges);
editorTimelineShowTicks = config.GetBindable<bool>(OsuSetting.EditorTimelineShowTicks);
editorTimelineShowSamples = config.GetBindable<bool>(OsuSetting.EditorTimelineShowSamples);
AddInternal(new OsuContextMenuContainer
{
@ -390,10 +388,6 @@ namespace osu.Game.Screens.Edit
{
State = { BindTarget = editorTimelineShowTicks }
},
new ToggleMenuItem(EditorStrings.TimelineShowSamples)
{
State = { BindTarget = editorTimelineShowSamples }
}
]
},
new BackgroundDimMenuItem(editorBackgroundDim),