1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-22 12:02:55 +08:00

Rename FooterButtonRandom actions to better describe what they are used for

This commit is contained in:
Jack Boswell (boswelja) 2020-06-04 21:00:29 +12:00
parent 62984cb7f5
commit 8533d7573d
2 changed files with 5 additions and 5 deletions

View File

@ -14,8 +14,8 @@ namespace osu.Game.Screens.Select
{ {
public class FooterButtonRandom : FooterButton public class FooterButtonRandom : FooterButton
{ {
public Action PrimaryAction { get; set; } public Action NextRandom { get; set; }
public Action SecondaryAction { get; set; } public Action PreviousRandom { get; set; }
private readonly SpriteText secondaryText; private readonly SpriteText secondaryText;
private bool rewindSearch; private bool rewindSearch;
@ -62,13 +62,13 @@ namespace osu.Game.Screens.Select
{ {
case GlobalAction.SelectPreviousRandom: case GlobalAction.SelectPreviousRandom:
rewindSearch = true; rewindSearch = true;
Action = SecondaryAction; Action = PreviousRandom;
updateText(); updateText();
Click(); Click();
return true; return true;
case GlobalAction.SelectNextRandom: case GlobalAction.SelectNextRandom:
Action = PrimaryAction; Action = NextRandom;
updateText(); updateText();
Click(); Click();
return true; return true;

View File

@ -272,7 +272,7 @@ namespace osu.Game.Screens.Select
if (Footer != null) if (Footer != null)
{ {
Footer.AddButton(new FooterButtonMods { Current = Mods }, ModSelect); Footer.AddButton(new FooterButtonMods { Current = Mods }, ModSelect);
Footer.AddButton(new FooterButtonRandom { PrimaryAction = triggerNextRandom, SecondaryAction = triggerPreviousRandom }); Footer.AddButton(new FooterButtonRandom { NextRandom = triggerNextRandom, PreviousRandom = triggerPreviousRandom });
Footer.AddButton(new FooterButtonOptions(), BeatmapOptions); Footer.AddButton(new FooterButtonOptions(), BeatmapOptions);
BeatmapOptions.AddButton(@"Remove", @"from unplayed", FontAwesome.Regular.TimesCircle, colours.Purple, null, Key.Number1); BeatmapOptions.AddButton(@"Remove", @"from unplayed", FontAwesome.Regular.TimesCircle, colours.Purple, null, Key.Number1);