1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-27 00:23:01 +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
{
Direction = FlowDirection.HorizontalOnly,
Anchor = Anchor.Centre,
Spacing = new Vector2(-wedge_width, 0),
Children = new Drawable[]
@ -133,7 +134,7 @@ namespace osu.Game.GameModes.Menu
State = MenuState.Initial;
return true;
}
return true;
}

View File

@ -27,10 +27,5 @@ namespace osu.Game.GameModes.Menu
return CentreTarget.Position + CentreTarget.Size / 2;
}
}
public FlowContainerWithOrigin()
{
Direction = FlowDirection.HorizontalOnly;
}
}
}