mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 22:22:56 +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;
|
||||
|
||||
float lineLength = (padding * 2 + ToolbarButton.WIDTH) / (Enum.GetValues(typeof(PlayMode)).Length * ToolbarButton.WIDTH + padding * 2);
|
||||
float lineLength = padding * 2 + ToolbarButton.WIDTH;
|
||||
|
||||
|
||||
Children = new Drawable[]
|
||||
@ -48,7 +48,6 @@ namespace osu.Game.Overlays.Toolbar
|
||||
},
|
||||
modeButtonLine = new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Size = new Vector2(lineLength, 3),
|
||||
Anchor = Anchor.BottomLeft,
|
||||
Origin = Anchor.TopLeft,
|
||||
|
Loading…
Reference in New Issue
Block a user