mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 07:42:55 +08:00
Make Action
s nullable
This commit is contained in:
parent
5006dbe3db
commit
f0ebb920b9
@ -17,8 +17,8 @@ namespace osu.Game.Screens.Select.FooterV2
|
|||||||
{
|
{
|
||||||
public partial class FooterButtonRandomV2 : FooterButtonV2
|
public partial class FooterButtonRandomV2 : FooterButtonV2
|
||||||
{
|
{
|
||||||
public Action NextRandom { get; set; } = null!;
|
public Action? NextRandom { get; set; }
|
||||||
public Action PreviousRandom { get; set; } = null!;
|
public Action? PreviousRandom { get; set; }
|
||||||
|
|
||||||
private Container persistentText = null!;
|
private Container persistentText = null!;
|
||||||
private OsuSpriteText randomSpriteText = null!;
|
private OsuSpriteText randomSpriteText = null!;
|
||||||
@ -83,11 +83,11 @@ namespace osu.Game.Screens.Select.FooterV2
|
|||||||
|
|
||||||
persistentText.FadeInFromZero(fade_time, Easing.In);
|
persistentText.FadeInFromZero(fade_time, Easing.In);
|
||||||
|
|
||||||
PreviousRandom.Invoke();
|
PreviousRandom?.Invoke();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
NextRandom.Invoke();
|
NextRandom?.Invoke();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user