mirror of
https://github.com/ppy/osu
synced 2025-02-15 09:37:07 +00:00
Rename secondaryAction to rewindSearch
This commit is contained in:
parent
bd3e40a8cf
commit
df148cf9d1
@ -18,7 +18,7 @@ namespace osu.Game.Screens.Select
|
|||||||
public Action SecondaryAction { get; set; }
|
public Action SecondaryAction { get; set; }
|
||||||
|
|
||||||
private readonly SpriteText secondaryText;
|
private readonly SpriteText secondaryText;
|
||||||
private bool secondaryActive;
|
private bool rewindSearch;
|
||||||
|
|
||||||
public FooterButtonRandom()
|
public FooterButtonRandom()
|
||||||
{
|
{
|
||||||
@ -45,7 +45,7 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
private void updateText()
|
private void updateText()
|
||||||
{
|
{
|
||||||
if (secondaryActive)
|
if (rewindSearch)
|
||||||
{
|
{
|
||||||
SpriteText.FadeOut(120, Easing.InQuad);
|
SpriteText.FadeOut(120, Easing.InQuad);
|
||||||
secondaryText.FadeIn(120, Easing.InQuad);
|
secondaryText.FadeIn(120, Easing.InQuad);
|
||||||
@ -62,7 +62,7 @@ namespace osu.Game.Screens.Select
|
|||||||
switch (action)
|
switch (action)
|
||||||
{
|
{
|
||||||
case GlobalAction.SelectPreviousRandom:
|
case GlobalAction.SelectPreviousRandom:
|
||||||
secondaryActive = true;
|
rewindSearch = true;
|
||||||
Action = SecondaryAction;
|
Action = SecondaryAction;
|
||||||
updateText();
|
updateText();
|
||||||
Click();
|
Click();
|
||||||
@ -82,7 +82,7 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
if (action == GlobalAction.SelectPreviousRandom)
|
if (action == GlobalAction.SelectPreviousRandom)
|
||||||
{
|
{
|
||||||
secondaryActive = false;
|
rewindSearch = false;
|
||||||
updateText();
|
updateText();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user