mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 09:02:55 +08:00
Remove depth specification and button order regression
This commit is contained in:
parent
e7ba6ef5c4
commit
5d460eaf6b
@ -93,7 +93,7 @@ namespace osu.Game.Screens.Select.Options
|
||||
/// <para>Lower depth to be put on the left, and higher to be put on the right.</para>
|
||||
/// <para>Notice this is different to <see cref="Footer"/>!</para>
|
||||
/// </param>
|
||||
public void AddButton(string firstLine, string secondLine, IconUsage icon, Color4 colour, Action action, Key? hotkey = null, float depth = 0)
|
||||
public void AddButton(string firstLine, string secondLine, IconUsage icon, Color4 colour, Action action, Key? hotkey = null)
|
||||
{
|
||||
var button = new BeatmapOptionsButton
|
||||
{
|
||||
@ -101,7 +101,6 @@ namespace osu.Game.Screens.Select.Options
|
||||
SecondLineText = secondLine,
|
||||
Icon = icon,
|
||||
ButtonColour = colour,
|
||||
Depth = depth,
|
||||
Action = () =>
|
||||
{
|
||||
Hide();
|
||||
@ -110,7 +109,7 @@ namespace osu.Game.Screens.Select.Options
|
||||
HotKey = hotkey
|
||||
};
|
||||
|
||||
buttonsContainer.Insert((int)depth, button);
|
||||
buttonsContainer.Add(button);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -230,9 +230,9 @@ namespace osu.Game.Screens.Select
|
||||
Footer.AddButton(new FooterButtonRandom { Action = triggerRandom });
|
||||
Footer.AddButton(new FooterButtonOptions(), BeatmapOptions);
|
||||
|
||||
BeatmapOptions.AddButton(@"Delete", @"all difficulties", FontAwesome.Solid.Trash, colours.Pink, () => delete(Beatmap.Value.BeatmapSetInfo), Key.Number1, float.MaxValue);
|
||||
BeatmapOptions.AddButton(@"Remove", @"from unplayed", FontAwesome.Regular.TimesCircle, colours.Purple, null, Key.Number2);
|
||||
BeatmapOptions.AddButton(@"Clear", @"local scores", FontAwesome.Solid.Eraser, colours.Purple, () => clearScores(Beatmap.Value.BeatmapInfo), Key.Number3);
|
||||
BeatmapOptions.AddButton(@"Remove", @"from unplayed", FontAwesome.Regular.TimesCircle, colours.Purple, null, Key.Number1);
|
||||
BeatmapOptions.AddButton(@"Clear", @"local scores", FontAwesome.Solid.Eraser, colours.Purple, () => clearScores(Beatmap.Value.BeatmapInfo), Key.Number2);
|
||||
BeatmapOptions.AddButton(@"Delete", @"all difficulties", FontAwesome.Solid.Trash, colours.Pink, () => delete(Beatmap.Value.BeatmapSetInfo), Key.Number3);
|
||||
}
|
||||
|
||||
if (this.beatmaps == null)
|
||||
|
Loading…
Reference in New Issue
Block a user