mirror of https://github.com/ppy/osu
Fixes invalid button scaling, Fixes invalid button location (they were oddly shifted to the right)
This commit is contained in:
parent
320f76d860
commit
3c297064b6
|
@ -75,7 +75,6 @@ public override void Load()
|
|||
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 @@ public override void Load()
|
|||
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 @@ public override void Load()
|
|||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Colour = colour,
|
||||
Scale = new Vector2(0, 2)
|
||||
Scale = new Vector2(0, 1)
|
||||
},
|
||||
iconText = new AutoSizeContainer
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue