mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Refactor drawable hierarchy to center properly
* Use FillFlowContainer.Spacing instead of manually applying margins. * Use Update() for calculating button padding to preserve it after mod button expansion and adjust FooterButtonRandom to use this method while avoiding flickering. * Expose mod display margin to clear it in the footer button.
This commit is contained in:
@ -46,7 +46,6 @@ namespace osu.Game.Screens.Select
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Font = OsuFont.GetFont(weight: FontWeight.Bold),
|
||||
Margin = new MarginPadding { Right = 10 }
|
||||
});
|
||||
}
|
||||
|
||||
@ -94,6 +93,7 @@ namespace osu.Game.Screens.Select
|
||||
public FooterModDisplay()
|
||||
{
|
||||
AllowExpand = false;
|
||||
IconsContainer.Margin = new MarginPadding();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user