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 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;