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:
parent
f737090c6b
commit
af76dc09d3
@ -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;
|
||||
}
|
||||
|
||||
|
@ -27,10 +27,5 @@ namespace osu.Game.GameModes.Menu
|
||||
return CentreTarget.Position + CentreTarget.Size / 2;
|
||||
}
|
||||
}
|
||||
|
||||
public FlowContainerWithOrigin()
|
||||
{
|
||||
Direction = FlowDirection.HorizontalOnly;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user