mirror of
https://github.com/ppy/osu.git
synced 2025-02-08 06:22:55 +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;
|
||||
|
||||
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?)[]
|
||||
{
|
||||
(freeModsFooterButton, null),
|
||||
(freestyleButton, null)
|
||||
(freeModsFooterButton = new FooterButtonFreeMods(freeModSelect) { Current = FreeMods }, null),
|
||||
(new FooterButtonFreestyle { Current = Freestyle }, null)
|
||||
});
|
||||
|
||||
return baseButtons;
|
||||
|
Loading…
Reference in New Issue
Block a user