mirror of
https://github.com/osukey/osukey.git
synced 2025-06-08 21:07:59 +09:00
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 @@ namespace osu.Game.GameModes.Menu
|
|||||||
buttonFlow = new FlowContainerWithOrigin
|
buttonFlow = new FlowContainerWithOrigin
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Position = new Vector2(wedge_width * 2 - (button_width + osuLogo.SizeForFlow / 4), 0),
|
|
||||||
Padding = new Vector2(-wedge_width, 0),
|
Padding = new Vector2(-wedge_width, 0),
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
@ -93,6 +92,8 @@ namespace osu.Game.GameModes.Menu
|
|||||||
osuLogo
|
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(@"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(@"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)));
|
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,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Colour = colour,
|
Colour = colour,
|
||||||
Scale = new Vector2(0, 2)
|
Scale = new Vector2(0, 1)
|
||||||
},
|
},
|
||||||
iconText = new AutoSizeContainer
|
iconText = new AutoSizeContainer
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user