mirror of
https://github.com/ppy/osu.git
synced 2025-01-16 00:52:55 +08:00
Line length is absolute now
This commit is contained in:
parent
c1ba53fa09
commit
1b08f6aca4
@ -31,7 +31,7 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Y;
|
RelativeSizeAxes = Axes.Y;
|
||||||
|
|
||||||
float lineLength = (padding * 2 + ToolbarButton.WIDTH) / (Enum.GetValues(typeof(PlayMode)).Length * ToolbarButton.WIDTH + padding * 2);
|
float lineLength = padding * 2 + ToolbarButton.WIDTH;
|
||||||
|
|
||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
@ -48,7 +48,6 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
},
|
},
|
||||||
modeButtonLine = new Container
|
modeButtonLine = new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
|
||||||
Size = new Vector2(lineLength, 3),
|
Size = new Vector2(lineLength, 3),
|
||||||
Anchor = Anchor.BottomLeft,
|
Anchor = Anchor.BottomLeft,
|
||||||
Origin = Anchor.TopLeft,
|
Origin = Anchor.TopLeft,
|
||||||
|
Loading…
Reference in New Issue
Block a user