Skip to content

Commit

Permalink
Remove hide sample toggle
Browse files Browse the repository at this point in the history
In line with feedback from
#29896 (comment).
  • Loading branch information
bdach committed Nov 1, 2024
1 parent eb61da4 commit 8f48682
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 18 deletions.
2 changes: 0 additions & 2 deletions osu.Game/Configuration/OsuConfigManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ protected override void InitialiseDefaults()

SetDefault(OsuSetting.EditorTimelineShowTimingChanges, true);
SetDefault(OsuSetting.EditorTimelineShowTicks, true);
SetDefault(OsuSetting.EditorTimelineShowSamples, true);

SetDefault(OsuSetting.AlwaysShowHoldForMenuButton, false);
}
Expand Down Expand Up @@ -433,6 +432,5 @@ public enum OsuSetting
EditorTimelineShowTimingChanges,
EditorTimelineShowTicks,
AlwaysShowHoldForMenuButton,
EditorTimelineShowSamples
}
}
5 changes: 0 additions & 5 deletions osu.Game/Localisation/EditorStrings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,6 @@ public static class EditorStrings
/// </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}";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ public partial class SamplePointPiece : HitObjectPointPiece, IHasPopover
[Resolved]
private TimelineBlueprintContainer? timelineBlueprintContainer { get; set; }

private Bindable<bool> samplesVisible = null!;

public SamplePointPiece(HitObject hitObject)
{
HitObject = hitObject;
Expand All @@ -68,8 +66,6 @@ private void load(OsuConfigManager config)

if (editor != null)
editor.ShowSampleEditPopoverRequested += onShowSampleEditPopoverRequested;

samplesVisible = config.GetBindable<bool>(OsuSetting.EditorTimelineShowSamples);
}

private readonly Bindable<bool> contracted = new Bindable<bool>();
Expand Down Expand Up @@ -97,7 +93,6 @@ protected override void LoadComplete()
}
}, true);

samplesVisible.BindValueChanged(visible => this.FadeTo(visible.NewValue ? 1 : 0, 200, Easing.OutQuint), true);
FinishTransforms();
}

Expand Down
6 changes: 0 additions & 6 deletions osu.Game/Screens/Edit/Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnl
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.
Expand Down Expand Up @@ -324,7 +323,6 @@ private void load(OsuConfigManager config)
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
{
Expand Down Expand Up @@ -390,10 +388,6 @@ private void load(OsuConfigManager config)
{
State = { BindTarget = editorTimelineShowTicks }
},
new ToggleMenuItem(EditorStrings.TimelineShowSamples)
{
State = { BindTarget = editorTimelineShowSamples }
}
]
},
new BackgroundDimMenuItem(editorBackgroundDim),
Expand Down

0 comments on commit 8f48682

Please sign in to comment.