1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:42:56 +08:00

Make mode selector selected line non-relative. (#352)

* mode selector line has the correct length now
* calculation is now a 'one-liner'
* Line length is absolute now
* Line length is calculated inline
This commit is contained in:
Jorolf 2017-02-15 05:48:49 +01:00 committed by Dean Herbert
parent 25e7a08cca
commit d42c5481b0

View File

@ -41,12 +41,11 @@ namespace osu.Game.Overlays.Toolbar
Direction = FlowDirections.Horizontal,
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Padding = new MarginPadding { Left = 10, Right = 10 },
Padding = new MarginPadding { Left = padding, Right = padding },
},
modeButtonLine = new Container
{
RelativeSizeAxes = Axes.X,
Size = new Vector2(0.3f, 3),
Size = new Vector2(padding * 2 + ToolbarButton.WIDTH, 3),
Anchor = Anchor.BottomLeft,
Origin = Anchor.TopLeft,
Masking = true,