mirror of
https://github.com/ppy/osu.git
synced 2025-02-08 13:05:27 +08:00
Tidy up button construction code
This commit is contained in:
parent
444e0970d6
commit
37abb1a21b
@ -203,13 +203,10 @@ namespace osu.Game.Screens.OnlinePlay
|
|||||||
|
|
||||||
baseButtons.Single(i => i.button is FooterButtonMods).button.TooltipText = MultiplayerMatchStrings.RequiredModsButtonTooltip;
|
baseButtons.Single(i => i.button is FooterButtonMods).button.TooltipText = MultiplayerMatchStrings.RequiredModsButtonTooltip;
|
||||||
|
|
||||||
freeModsFooterButton = new FooterButtonFreeMods(freeModSelect) { Current = FreeMods };
|
|
||||||
var freestyleButton = new FooterButtonFreestyle { Current = Freestyle };
|
|
||||||
|
|
||||||
baseButtons.InsertRange(baseButtons.FindIndex(b => b.button is FooterButtonMods) + 1, new (FooterButton, OverlayContainer?)[]
|
baseButtons.InsertRange(baseButtons.FindIndex(b => b.button is FooterButtonMods) + 1, new (FooterButton, OverlayContainer?)[]
|
||||||
{
|
{
|
||||||
(freeModsFooterButton, null),
|
(freeModsFooterButton = new FooterButtonFreeMods(freeModSelect) { Current = FreeMods }, null),
|
||||||
(freestyleButton, null)
|
(new FooterButtonFreestyle { Current = Freestyle }, null)
|
||||||
});
|
});
|
||||||
|
|
||||||
return baseButtons;
|
return baseButtons;
|
||||||
|
Loading…
Reference in New Issue
Block a user