1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-10 11:42:54 +08:00

Move direction declaration to usage.

This commit is contained in:
Dean Herbert 2016-10-12 15:33:04 +09:00
parent f737090c6b
commit af76dc09d3
2 changed files with 2 additions and 6 deletions

View File

@ -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[]

View File

@ -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;
}
} }
} }