Further refactoring. I think this may have polluted the FooterButton too much. Not sure what to do about the centering.

This commit is contained in:
Viktor Rosvall
2020-01-01 12:22:19 +01:00
parent 8695e57f62
commit ddec59ec91
2 changed files with 29 additions and 17 deletions

View File

@ -34,19 +34,19 @@ namespace osu.Game.Screens.Select
public FooterButtonMods()
{
TextContainer.Add(modDisplay = new FooterModDisplay
ButtonContentContainer.Add(modDisplay = new FooterModDisplay
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
DisplayUnrankedText = false,
Scale = new Vector2(0.8f)
});
TextContainer.Add(MultiplierText = new OsuSpriteText
ButtonContentContainer.Add(MultiplierText = new OsuSpriteText
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Font = OsuFont.GetFont(weight: FontWeight.Bold),
// Margin = new MarginPadding { Right = 6 }
Margin = new MarginPadding { Right = 10 }
});
}