Update References to FlowStrategies

References now use the Create*-names instead of the outdated
Get*-names to create instances of FlowStrategies.
This commit is contained in:
default0
2017-02-27 16:55:55 +01:00
parent 0d1dec665a
commit 03889e6ca6
34 changed files with 50 additions and 50 deletions

View File

@ -125,7 +125,7 @@ namespace osu.Game.Screens.Select
{
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
FlowStrategy = FlowStrategies.GetVerticalFlow(),
FlowStrategy = FlowStrategies.CreateVerticalFlow(),
Margin = new MarginPadding { Top = 10, Left = 25, Right = 10, Bottom = 20 },
AutoSizeAxes = Axes.Both,
Children = new Drawable[]
@ -147,7 +147,7 @@ namespace osu.Game.Screens.Select
new FlowContainer
{
Margin = new MarginPadding { Top = 10 },
FlowStrategy = FlowStrategies.GetHorizontalFlow(),
FlowStrategy = FlowStrategies.CreateHorizontalFlow(),
AutoSizeAxes = Axes.Both,
Children = new []
{
@ -170,7 +170,7 @@ namespace osu.Game.Screens.Select
new FlowContainer
{
Margin = new MarginPadding { Top = 20 },
FlowStrategy = FlowStrategies.GetFillFlow(new Vector2(40, 0)),
FlowStrategy = FlowStrategies.CreateFillFlow(new Vector2(40, 0)),
AutoSizeAxes = Axes.Both,
Children = labels
},

View File

@ -44,7 +44,7 @@ namespace osu.Game.Screens.Select
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
Width = 0.4f, // TODO: InnerWidth property or something
FlowStrategy = FlowStrategies.GetVerticalFlow(),
FlowStrategy = FlowStrategies.CreateVerticalFlow(),
Children = new Drawable[]
{
searchTextBox = new SearchTextBox {
@ -177,7 +177,7 @@ namespace osu.Game.Screens.Select
new FlowContainer
{
AutoSizeAxes = Axes.Both,
FlowStrategy = FlowStrategies.GetHorizontalFlow(new Vector2(10, 0)),
FlowStrategy = FlowStrategies.CreateHorizontalFlow(new Vector2(10, 0)),
Children = new Drawable[]
{
new TabItem
@ -208,7 +208,7 @@ namespace osu.Game.Screens.Select
new FlowContainer
{
AutoSizeAxes = Axes.Both,
FlowStrategy = FlowStrategies.GetHorizontalFlow(new Vector2(10, 0)),
FlowStrategy = FlowStrategies.CreateHorizontalFlow(new Vector2(10, 0)),
Origin = Anchor.TopRight,
Anchor = Anchor.TopRight,
Children = new Drawable[]

View File

@ -98,13 +98,13 @@ namespace osu.Game.Screens.Select
Position = new Vector2(BackButton.SIZE_EXTENDED.X + padding, 0),
RelativeSizeAxes = Axes.Y,
AutoSizeAxes = Axes.X,
FlowStrategy = FlowStrategies.GetHorizontalFlow(new Vector2(padding, 0)),
FlowStrategy = FlowStrategies.CreateHorizontalFlow(new Vector2(padding, 0)),
Children = new Drawable[]
{
buttons = new FlowContainer
{
FlowStrategy = FlowStrategies.GetHorizontalFlow(new Vector2(0.2f, 0)),
FlowStrategy = FlowStrategies.CreateHorizontalFlow(new Vector2(0.2f, 0)),
AutoSizeAxes = Axes.Both,
}
}