1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-23 09:27:23 +08:00

Line length is absolute now

This commit is contained in:
Jorolf 2017-02-14 14:24:54 +01:00 committed by GitHub
parent c1ba53fa09
commit 1b08f6aca4

View File

@ -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,