mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 17:33:18 +08:00
Rename FooterButtonRandom actions to better describe what they are used for
This commit is contained in:
parent
62984cb7f5
commit
8533d7573d
@ -14,8 +14,8 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
public class FooterButtonRandom : FooterButton
|
||||
{
|
||||
public Action PrimaryAction { get; set; }
|
||||
public Action SecondaryAction { get; set; }
|
||||
public Action NextRandom { get; set; }
|
||||
public Action PreviousRandom { get; set; }
|
||||
|
||||
private readonly SpriteText secondaryText;
|
||||
private bool rewindSearch;
|
||||
@ -62,13 +62,13 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
case GlobalAction.SelectPreviousRandom:
|
||||
rewindSearch = true;
|
||||
Action = SecondaryAction;
|
||||
Action = PreviousRandom;
|
||||
updateText();
|
||||
Click();
|
||||
return true;
|
||||
|
||||
case GlobalAction.SelectNextRandom:
|
||||
Action = PrimaryAction;
|
||||
Action = NextRandom;
|
||||
updateText();
|
||||
Click();
|
||||
return true;
|
||||
|
@ -272,7 +272,7 @@ namespace osu.Game.Screens.Select
|
||||
if (Footer != null)
|
||||
{
|
||||
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);
|
||||
|
||||
BeatmapOptions.AddButton(@"Remove", @"from unplayed", FontAwesome.Regular.TimesCircle, colours.Purple, null, Key.Number1);
|
||||
|
Loading…
Reference in New Issue
Block a user