mirror of
https://github.com/ppy/osu.git
synced 2025-02-10 12:22:54 +08:00
Move direction declaration to usage.
This commit is contained in:
parent
f737090c6b
commit
af76dc09d3
@ -81,6 +81,7 @@ namespace osu.Game.GameModes.Menu
|
|||||||
},
|
},
|
||||||
buttonFlow = new FlowContainerWithOrigin
|
buttonFlow = new FlowContainerWithOrigin
|
||||||
{
|
{
|
||||||
|
Direction = FlowDirection.HorizontalOnly,
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Spacing = new Vector2(-wedge_width, 0),
|
Spacing = new Vector2(-wedge_width, 0),
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
|
@ -27,10 +27,5 @@ namespace osu.Game.GameModes.Menu
|
|||||||
return CentreTarget.Position + CentreTarget.Size / 2;
|
return CentreTarget.Position + CentreTarget.Size / 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public FlowContainerWithOrigin()
|
|
||||||
{
|
|
||||||
Direction = FlowDirection.HorizontalOnly;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user