mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 22:27:25 +08:00
Set FooterButtonRandom actions properly when creating the button
This commit is contained in:
parent
568503ef99
commit
aa08847bc9
@ -272,7 +272,7 @@ namespace osu.Game.Screens.Select
|
||||
if (Footer != null)
|
||||
{
|
||||
Footer.AddButton(new FooterButtonMods { Current = Mods }, ModSelect);
|
||||
Footer.AddButton(new FooterButtonRandom { Action = triggerRandom });
|
||||
Footer.AddButton(new FooterButtonRandom { PrimaryAction = triggerNextRandom, SecondaryAction = triggerPreviousRandom });
|
||||
Footer.AddButton(new FooterButtonOptions(), BeatmapOptions);
|
||||
|
||||
BeatmapOptions.AddButton(@"Remove", @"from unplayed", FontAwesome.Regular.TimesCircle, colours.Purple, null, Key.Number1);
|
||||
@ -496,14 +496,16 @@ namespace osu.Game.Screens.Select
|
||||
}
|
||||
}
|
||||
|
||||
private void triggerRandom()
|
||||
private void triggerNextRandom()
|
||||
{
|
||||
if (GetContainingInputManager().CurrentState.Keyboard.ShiftPressed)
|
||||
Carousel.SelectPreviousRandom();
|
||||
else
|
||||
Carousel.SelectNextRandom();
|
||||
}
|
||||
|
||||
private void triggerPreviousRandom()
|
||||
{
|
||||
Carousel.SelectPreviousRandom();
|
||||
}
|
||||
|
||||
public override void OnEntering(IScreen last)
|
||||
{
|
||||
base.OnEntering(last);
|
||||
|
Loading…
Reference in New Issue
Block a user