1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-21 20:12:57 +08:00

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

@ -1 +1 @@
Subproject commit 92db4fc015274a4b8a74d9adb2d7a68b8be2134c Subproject commit bd8bc234fc6014cb18679e5e52da1074f4a4e5be

View File

@ -60,13 +60,13 @@ namespace osu.Desktop.Overlays
new FlowContainer new FlowContainer
{ {
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
FlowStrategy = FlowStrategies.GetVerticalFlow(), FlowStrategy = FlowStrategies.CreateVerticalFlow(),
Children = new Drawable[] Children = new Drawable[]
{ {
new FlowContainer new FlowContainer
{ {
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
FlowStrategy = FlowStrategies.GetHorizontalFlow(new Vector2(5)), FlowStrategy = FlowStrategies.CreateHorizontalFlow(new Vector2(5)),
Anchor = Anchor.TopCentre, Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,
Children = new Drawable[] Children = new Drawable[]

View File

@ -25,7 +25,7 @@ namespace osu.Game.Modes.Osu.Objects.Drawables
AutoSizeAxes = Axes.Both; AutoSizeAxes = Axes.Both;
Origin = Anchor.Centre; Origin = Anchor.Centre;
FlowStrategy = FlowStrategies.GetVerticalFlow(new Vector2(0, 2)); FlowStrategy = FlowStrategies.CreateVerticalFlow(new Vector2(0, 2));
Position = (h?.StackedEndPosition ?? Vector2.Zero) + judgement.PositionOffset; Position = (h?.StackedEndPosition ?? Vector2.Zero) + judgement.PositionOffset;
Children = new Drawable[] Children = new Drawable[]

View File

@ -86,7 +86,7 @@ namespace osu.Game.Beatmaps.Drawables
new FlowContainer new FlowContainer
{ {
Padding = new MarginPadding(5), Padding = new MarginPadding(5),
FlowStrategy = FlowStrategies.GetHorizontalFlow(), FlowStrategy = FlowStrategies.CreateHorizontalFlow(),
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Anchor = Anchor.CentreLeft, Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft, Origin = Anchor.CentreLeft,
@ -101,13 +101,13 @@ namespace osu.Game.Beatmaps.Drawables
new FlowContainer new FlowContainer
{ {
Padding = new MarginPadding { Left = 5 }, Padding = new MarginPadding { Left = 5 },
FlowStrategy = FlowStrategies.GetVerticalFlow(), FlowStrategy = FlowStrategies.CreateVerticalFlow(),
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Children = new Drawable[] Children = new Drawable[]
{ {
new FlowContainer new FlowContainer
{ {
FlowStrategy = FlowStrategies.GetHorizontalFlow(new Vector2(4, 0)), FlowStrategy = FlowStrategies.CreateHorizontalFlow(new Vector2(4, 0)),
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Children = new[] Children = new[]
{ {

View File

@ -38,7 +38,7 @@ namespace osu.Game.Beatmaps.Drawables
}, },
new FlowContainer new FlowContainer
{ {
FlowStrategy = FlowStrategies.GetVerticalFlow(), FlowStrategy = FlowStrategies.CreateVerticalFlow(),
Padding = new MarginPadding { Top = 5, Left = 18, Right = 10, Bottom = 10 }, Padding = new MarginPadding { Top = 5, Left = 18, Right = 10, Bottom = 10 },
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Children = new[] Children = new[]
@ -112,7 +112,7 @@ namespace osu.Game.Beatmaps.Drawables
new FlowContainer new FlowContainer
{ {
Depth = -1, Depth = -1,
FlowStrategy = FlowStrategies.GetHorizontalFlow(), FlowStrategy = FlowStrategies.CreateHorizontalFlow(),
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
// This makes the gradient not be perfectly horizontal, but diagonal at a ~40° angle // This makes the gradient not be perfectly horizontal, but diagonal at a ~40° angle
Shear = new Vector2(0.8f, 0), Shear = new Vector2(0.8f, 0),

View File

@ -21,7 +21,7 @@ namespace osu.Game.Graphics.UserInterface
{ {
new FlowContainer new FlowContainer
{ {
FlowStrategy = FlowStrategies.GetHorizontalFlow(), FlowStrategy = FlowStrategies.CreateHorizontalFlow(),
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
Children = new Drawable[] Children = new Drawable[]

View File

@ -73,7 +73,7 @@ namespace osu.Game.Graphics.UserInterface
stars = new FlowContainer<Star> stars = new FlowContainer<Star>
{ {
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
FlowStrategy = FlowStrategies.GetHorizontalFlow(new Vector2(star_spacing)), FlowStrategy = FlowStrategies.CreateHorizontalFlow(new Vector2(star_spacing)),
} }
}; };

View File

@ -39,7 +39,7 @@ namespace osu.Game.Graphics.UserInterface.Volume
Anchor = Anchor.BottomRight, Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight, Origin = Anchor.BottomRight,
Margin = new MarginPadding { Left = 10, Right = 10, Top = 30, Bottom = 30 }, Margin = new MarginPadding { Left = 10, Right = 10, Top = 30, Bottom = 30 },
FlowStrategy = FlowStrategies.GetFillFlow(new Vector2(15, 0)), FlowStrategy = FlowStrategies.CreateFillFlow(new Vector2(15, 0)),
Children = new Drawable[] Children = new Drawable[]
{ {
volumeMeterMaster = new VolumeMeter("Master"), volumeMeterMaster = new VolumeMeter("Master"),

View File

@ -41,7 +41,7 @@ namespace osu.Game.Online.Chat.Drawables
{ {
flow = new FlowContainer flow = new FlowContainer
{ {
FlowStrategy = FlowStrategies.GetVerticalFlow(), FlowStrategy = FlowStrategies.CreateVerticalFlow(),
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
Padding = new MarginPadding { Left = 20, Right = 20 } Padding = new MarginPadding { Left = 20, Right = 20 }

View File

@ -46,7 +46,7 @@ namespace osu.Game.Overlays
{ {
sections = new FlowContainer<NotificationSection> sections = new FlowContainer<NotificationSection>
{ {
FlowStrategy = FlowStrategies.GetVerticalFlow(), FlowStrategy = FlowStrategies.CreateVerticalFlow(),
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
Children = new [] Children = new []

View File

@ -60,7 +60,7 @@ namespace osu.Game.Overlays.Notifications
{ {
RelativeSizeAxes = Axes.X; RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y; AutoSizeAxes = Axes.Y;
FlowStrategy = FlowStrategies.GetVerticalFlow(); FlowStrategy = FlowStrategies.CreateVerticalFlow();
Padding = new MarginPadding Padding = new MarginPadding
{ {
@ -91,7 +91,7 @@ namespace osu.Game.Overlays.Notifications
{ {
Bottom = 5 Bottom = 5
}, },
FlowStrategy = FlowStrategies.GetFillFlow(new Vector2(5, 0)), FlowStrategy = FlowStrategies.CreateFillFlow(new Vector2(5, 0)),
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Children = new Drawable[] Children = new Drawable[]
{ {
@ -116,7 +116,7 @@ namespace osu.Game.Overlays.Notifications
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
LayoutDuration = 150, LayoutDuration = 150,
LayoutEasing = EasingTypes.OutQuart, LayoutEasing = EasingTypes.OutQuart,
FlowStrategy = FlowStrategies.GetFillFlow(new Vector2(3)), FlowStrategy = FlowStrategies.CreateFillFlow(new Vector2(3)),
} }
}); });
} }

View File

@ -89,7 +89,7 @@ namespace osu.Game.Overlays.Options
{ {
Items = new KeyValuePair<string, T>[0]; Items = new KeyValuePair<string, T>[0];
FlowStrategy = FlowStrategies.GetVerticalFlow(); FlowStrategy = FlowStrategies.CreateVerticalFlow();
RelativeSizeAxes = Axes.X; RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y; AutoSizeAxes = Axes.Y;
Children = new Drawable[] Children = new Drawable[]

View File

@ -40,7 +40,7 @@ namespace osu.Game.Overlays.Options
public OptionSlider() public OptionSlider()
{ {
FlowStrategy = FlowStrategies.GetFillFlow(); FlowStrategy = FlowStrategies.CreateFillFlow();
RelativeSizeAxes = Axes.X; RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y; AutoSizeAxes = Axes.Y;
Padding = new MarginPadding { Right = 5 }; Padding = new MarginPadding { Right = 5 };

View File

@ -61,7 +61,7 @@ namespace osu.Game.Overlays.Options
FlowContent = new FlowContainer FlowContent = new FlowContainer
{ {
Margin = new MarginPadding { Top = header_size + header_margin }, Margin = new MarginPadding { Top = header_size + header_margin },
FlowStrategy = FlowStrategies.GetVerticalFlow(new Vector2(0, 30)), FlowStrategy = FlowStrategies.CreateVerticalFlow(new Vector2(0, 30)),
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
}, },

View File

@ -20,7 +20,7 @@ namespace osu.Game.Overlays.Options
{ {
RelativeSizeAxes = Axes.X; RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y; AutoSizeAxes = Axes.Y;
FlowStrategy = FlowStrategies.GetVerticalFlow(); FlowStrategy = FlowStrategies.CreateVerticalFlow();
AddInternal(new Drawable[] AddInternal(new Drawable[]
{ {
new OsuSpriteText new OsuSpriteText
@ -31,7 +31,7 @@ namespace osu.Game.Overlays.Options
}, },
content = new FlowContainer content = new FlowContainer
{ {
FlowStrategy = FlowStrategies.GetVerticalFlow(new Vector2(0, 5)), FlowStrategy = FlowStrategies.CreateVerticalFlow(new Vector2(0, 5)),
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
}, },

View File

@ -19,7 +19,7 @@ namespace osu.Game.Overlays.Options.Sections
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(OsuConfigManager config) private void load(OsuConfigManager config)
{ {
FlowContent.FlowStrategy = FlowStrategies.GetFillFlow(new Vector2(0, 5)); FlowContent.FlowStrategy = FlowStrategies.CreateFillFlow(new Vector2(0, 5));
Children = new Drawable[] Children = new Drawable[]
{ {
new OsuCheckbox new OsuCheckbox

View File

@ -100,7 +100,7 @@ namespace osu.Game.Overlays.Options.Sections.General
private void load(APIAccess api, OsuConfigManager config) private void load(APIAccess api, OsuConfigManager config)
{ {
this.api = api; this.api = api;
FlowStrategy = FlowStrategies.GetVerticalFlow(new Vector2(0, 5)); FlowStrategy = FlowStrategies.CreateVerticalFlow(new Vector2(0, 5));
AutoSizeAxes = Axes.Y; AutoSizeAxes = Axes.Y;
RelativeSizeAxes = Axes.X; RelativeSizeAxes = Axes.X;
Children = new Drawable[] Children = new Drawable[]

View File

@ -16,7 +16,7 @@ namespace osu.Game.Overlays.Options.Sections
public MaintenanceSection() public MaintenanceSection()
{ {
FlowContent.FlowStrategy = FlowStrategies.GetFillFlow(new Vector2(0, 5)); FlowContent.FlowStrategy = FlowStrategies.CreateFillFlow(new Vector2(0, 5));
Children = new Drawable[] Children = new Drawable[]
{ {
new OsuButton new OsuButton

View File

@ -20,7 +20,7 @@ namespace osu.Game.Overlays.Options.Sections
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(OsuConfigManager config) private void load(OsuConfigManager config)
{ {
FlowContent.FlowStrategy = FlowStrategies.GetFillFlow(new Vector2(0, 5)); FlowContent.FlowStrategy = FlowStrategies.CreateFillFlow(new Vector2(0, 5));
Children = new Drawable[] Children = new Drawable[]
{ {
new OptionLabel { Text = "TODO: Skin preview textures" }, new OptionLabel { Text = "TODO: Skin preview textures" },

View File

@ -40,7 +40,7 @@ namespace osu.Game.Overlays.Options
Anchor = Anchor.CentreLeft, Anchor = Anchor.CentreLeft,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
FlowStrategy = FlowStrategies.GetVerticalFlow(), FlowStrategy = FlowStrategies.CreateVerticalFlow(),
} }
} }
}, },

View File

@ -77,7 +77,7 @@ namespace osu.Game.Overlays
{ {
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
FlowStrategy = FlowStrategies.GetVerticalFlow(), FlowStrategy = FlowStrategies.CreateVerticalFlow(),
Children = new Drawable[] Children = new Drawable[]
{ {
@ -98,7 +98,7 @@ namespace osu.Game.Overlays
{ {
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
FlowStrategy = FlowStrategies.GetVerticalFlow(), FlowStrategy = FlowStrategies.CreateVerticalFlow(),
Children = sections, Children = sections,
} }
} }

View File

@ -104,7 +104,7 @@ namespace osu.Game.Overlays.Pause
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
FlowStrategy = FlowStrategies.GetVerticalFlow(new Vector2(0, 50)), FlowStrategy = FlowStrategies.CreateVerticalFlow(new Vector2(0, 50)),
Origin = Anchor.Centre, Origin = Anchor.Centre,
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Children = new Drawable[] Children = new Drawable[]
@ -112,7 +112,7 @@ namespace osu.Game.Overlays.Pause
new FlowContainer new FlowContainer
{ {
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
FlowStrategy = FlowStrategies.GetVerticalFlow(new Vector2(0, 20)), FlowStrategy = FlowStrategies.CreateVerticalFlow(new Vector2(0, 20)),
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,
Anchor = Anchor.TopCentre, Anchor = Anchor.TopCentre,
Children = new Drawable[] Children = new Drawable[]

View File

@ -43,7 +43,7 @@ namespace osu.Game.Overlays.Toolbar
new ToolbarBackground(), new ToolbarBackground(),
new FlowContainer new FlowContainer
{ {
FlowStrategy = FlowStrategies.GetHorizontalFlow(), FlowStrategy = FlowStrategies.CreateHorizontalFlow(),
RelativeSizeAxes = Axes.Y, RelativeSizeAxes = Axes.Y,
AutoSizeAxes = Axes.X, AutoSizeAxes = Axes.X,
Children = new Drawable[] Children = new Drawable[]
@ -63,7 +63,7 @@ namespace osu.Game.Overlays.Toolbar
{ {
Anchor = Anchor.TopRight, Anchor = Anchor.TopRight,
Origin = Anchor.TopRight, Origin = Anchor.TopRight,
FlowStrategy = FlowStrategies.GetHorizontalFlow(), FlowStrategy = FlowStrategies.CreateHorizontalFlow(),
RelativeSizeAxes = Axes.Y, RelativeSizeAxes = Axes.Y,
AutoSizeAxes = Axes.X, AutoSizeAxes = Axes.X,
Children = new Drawable[] Children = new Drawable[]

View File

@ -84,7 +84,7 @@ namespace osu.Game.Overlays.Toolbar
}, },
Flow = new FlowContainer Flow = new FlowContainer
{ {
FlowStrategy = FlowStrategies.GetHorizontalFlow(new Vector2(5)), FlowStrategy = FlowStrategies.CreateHorizontalFlow(new Vector2(5)),
Anchor = Anchor.TopCentre, Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,
Padding = new MarginPadding { Left = Toolbar.HEIGHT / 2, Right = Toolbar.HEIGHT / 2 }, Padding = new MarginPadding { Left = Toolbar.HEIGHT / 2, Right = Toolbar.HEIGHT / 2 },
@ -106,7 +106,7 @@ namespace osu.Game.Overlays.Toolbar
}, },
tooltipContainer = new FlowContainer tooltipContainer = new FlowContainer
{ {
FlowStrategy = FlowStrategies.GetVerticalFlow(), FlowStrategy = FlowStrategies.CreateVerticalFlow(),
RelativeSizeAxes = Axes.Both, //stops us being considered in parent's autosize RelativeSizeAxes = Axes.Both, //stops us being considered in parent's autosize
Anchor = (TooltipAnchor & Anchor.x0) > 0 ? Anchor.BottomLeft : Anchor.BottomRight, Anchor = (TooltipAnchor & Anchor.x0) > 0 ? Anchor.BottomLeft : Anchor.BottomRight,
Origin = TooltipAnchor, Origin = TooltipAnchor,

View File

@ -36,7 +36,7 @@ namespace osu.Game.Overlays.Toolbar
{ {
RelativeSizeAxes = Axes.Y, RelativeSizeAxes = Axes.Y,
AutoSizeAxes = Axes.X, AutoSizeAxes = Axes.X,
FlowStrategy = FlowStrategies.GetHorizontalFlow(), FlowStrategy = FlowStrategies.CreateHorizontalFlow(),
Anchor = Anchor.TopCentre, Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,
Padding = new MarginPadding { Left = padding, Right = padding }, Padding = new MarginPadding { Left = padding, Right = padding },

View File

@ -126,7 +126,7 @@ namespace osu.Game.Screens
}, },
childModeButtons = new FlowContainer childModeButtons = new FlowContainer
{ {
FlowStrategy = FlowStrategies.GetVerticalFlow(), FlowStrategy = FlowStrategies.CreateVerticalFlow(),
Anchor = Anchor.TopRight, Anchor = Anchor.TopRight,
Origin = Anchor.TopRight, Origin = Anchor.TopRight,
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,

View File

@ -78,7 +78,7 @@ namespace osu.Game.Screens.Menu
}, },
buttonFlow = new FlowContainerWithOrigin buttonFlow = new FlowContainerWithOrigin
{ {
FlowStrategy = FlowStrategies.GetHorizontalFlow(new Vector2(-WEDGE_WIDTH, 0)), FlowStrategy = FlowStrategies.CreateHorizontalFlow(new Vector2(-WEDGE_WIDTH, 0)),
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Children = new[] Children = new[]

View File

@ -32,7 +32,7 @@ namespace osu.Game.Screens.Menu
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
FlowStrategy = FlowStrategies.GetVerticalFlow(new Vector2(0, 2)), FlowStrategy = FlowStrategies.CreateVerticalFlow(new Vector2(0, 2)),
Children = new Drawable[] Children = new Drawable[]
{ {
icon = new TextAwesome icon = new TextAwesome

View File

@ -12,7 +12,7 @@ namespace osu.Game.Screens.Play
{ {
public KeyCounterCollection() public KeyCounterCollection()
{ {
FlowStrategy = FlowStrategies.GetHorizontalFlow(); FlowStrategy = FlowStrategies.CreateHorizontalFlow();
AutoSizeAxes = Axes.Both; AutoSizeAxes = Axes.Both;
} }

View File

@ -139,7 +139,7 @@ namespace osu.Game.Screens.Play
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,
Anchor = Anchor.TopCentre, Anchor = Anchor.TopCentre,
FlowStrategy = FlowStrategies.GetVerticalFlow(), FlowStrategy = FlowStrategies.CreateVerticalFlow(),
Children = new Drawable[] Children = new Drawable[]
{ {
new OsuSpriteText new OsuSpriteText

View File

@ -68,7 +68,7 @@ namespace osu.Game.Screens.Ranking
new FlowContainer new FlowContainer
{ {
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
FlowStrategy = FlowStrategies.GetVerticalFlow(), FlowStrategy = FlowStrategies.CreateVerticalFlow(),
Children = new Drawable[] Children = new Drawable[]
{ {
new OsuSpriteText new OsuSpriteText

View File

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

View File

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

View File

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