mirror of
https://github.com/ppy/osu.git
synced 2025-03-06 05:12:55 +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:
parent
25e7a08cca
commit
d42c5481b0
@ -41,12 +41,11 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
Direction = FlowDirections.Horizontal,
|
Direction = FlowDirections.Horizontal,
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
Padding = new MarginPadding { Left = 10, Right = 10 },
|
Padding = new MarginPadding { Left = padding, Right = padding },
|
||||||
},
|
},
|
||||||
modeButtonLine = new Container
|
modeButtonLine = new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
Size = new Vector2(padding * 2 + ToolbarButton.WIDTH, 3),
|
||||||
Size = new Vector2(0.3f, 3),
|
|
||||||
Anchor = Anchor.BottomLeft,
|
Anchor = Anchor.BottomLeft,
|
||||||
Origin = Anchor.TopLeft,
|
Origin = Anchor.TopLeft,
|
||||||
Masking = true,
|
Masking = true,
|
||||||
|
Loading…
Reference in New Issue
Block a user