mirror of
https://github.com/ppy/osu.git
synced 2024-11-12 04:49:40 +08:00
Line length is calculated inline
This commit is contained in:
parent
1b08f6aca4
commit
e717daa504
@ -31,9 +31,6 @@ namespace osu.Game.Overlays.Toolbar
|
||||
{
|
||||
RelativeSizeAxes = Axes.Y;
|
||||
|
||||
float lineLength = padding * 2 + ToolbarButton.WIDTH;
|
||||
|
||||
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new OpaqueBackground(),
|
||||
@ -48,7 +45,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
},
|
||||
modeButtonLine = new Container
|
||||
{
|
||||
Size = new Vector2(lineLength, 3),
|
||||
Size = new Vector2(padding * 2 + ToolbarButton.WIDTH, 3),
|
||||
Anchor = Anchor.BottomLeft,
|
||||
Origin = Anchor.TopLeft,
|
||||
Masking = true,
|
||||
|
Loading…
Reference in New Issue
Block a user