From 3c297064b6db5a592b46ce65c84b0cb9310c2316 Mon Sep 17 00:00:00 2001 From: Remie Richards Date: Mon, 19 Sep 2016 01:47:14 +0100 Subject: [PATCH] Fixes invalid button scaling, Fixes invalid button location (they were oddly shifted to the right) --- osu.Game/GameModes/Menu/ButtonSystem.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/osu.Game/GameModes/Menu/ButtonSystem.cs b/osu.Game/GameModes/Menu/ButtonSystem.cs index 21b72e46bd..996c84939f 100644 --- a/osu.Game/GameModes/Menu/ButtonSystem.cs +++ b/osu.Game/GameModes/Menu/ButtonSystem.cs @@ -75,7 +75,6 @@ namespace osu.Game.GameModes.Menu buttonFlow = new FlowContainerWithOrigin { Anchor = Anchor.Centre, - Position = new Vector2(wedge_width * 2 - (button_width + osuLogo.SizeForFlow / 4), 0), Padding = new Vector2(-wedge_width, 0), Children = new Drawable[] { @@ -93,6 +92,8 @@ namespace osu.Game.GameModes.Menu osuLogo }; + buttonFlow.Position = new Vector2(wedge_width * 2 - (button_width + osuLogo.SizeForFlow / 4), 0); + buttonsPlay.Add((Button)buttonFlow.Add(new Button(@"solo", @"freeplay", FontAwesome.user, new Color4(102, 68, 204, 255), onSolo, wedge_width, Key.P))); buttonsPlay.Add((Button)buttonFlow.Add(new Button(@"multi", @"multiplayer", FontAwesome.users, new Color4(94, 63, 186, 255), onMulti, 0, Key.M))); buttonsPlay.Add((Button)buttonFlow.Add(new Button(@"chart", @"charts", FontAwesome.fa_osu_charts, new Color4(80, 53, 160, 255), onChart))); @@ -434,7 +435,7 @@ namespace osu.Game.GameModes.Menu Anchor = Anchor.Centre, Origin = Anchor.Centre, Colour = colour, - Scale = new Vector2(0, 2) + Scale = new Vector2(0, 1) }, iconText = new AutoSizeContainer {