1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 15:12:57 +08:00

Rename secondaryAction to rewindSearch

This commit is contained in:
Jack Boswell (boswelja) 2020-06-04 20:58:19 +12:00
parent bd3e40a8cf
commit df148cf9d1

View File

@ -18,7 +18,7 @@ namespace osu.Game.Screens.Select
public Action SecondaryAction { get; set; }
private readonly SpriteText secondaryText;
private bool secondaryActive;
private bool rewindSearch;
public FooterButtonRandom()
{
@ -45,7 +45,7 @@ namespace osu.Game.Screens.Select
private void updateText()
{
if (secondaryActive)
if (rewindSearch)
{
SpriteText.FadeOut(120, Easing.InQuad);
secondaryText.FadeIn(120, Easing.InQuad);
@ -62,7 +62,7 @@ namespace osu.Game.Screens.Select
switch (action)
{
case GlobalAction.SelectPreviousRandom:
secondaryActive = true;
rewindSearch = true;
Action = SecondaryAction;
updateText();
Click();
@ -82,7 +82,7 @@ namespace osu.Game.Screens.Select
{
if (action == GlobalAction.SelectPreviousRandom)
{
secondaryActive = false;
rewindSearch = false;
updateText();
}
}