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

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

View File

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

View File

@ -61,7 +61,7 @@ namespace osu.Game.Overlays.Options
FlowContent = new FlowContainer
{
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,
RelativeSizeAxes = Axes.X,
},

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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