mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09: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:
@ -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[]
|
||||
|
@ -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 };
|
||||
|
@ -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,
|
||||
},
|
||||
|
@ -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,
|
||||
},
|
||||
|
@ -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
|
||||
|
@ -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[]
|
||||
|
@ -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
|
||||
|
@ -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" },
|
||||
|
@ -40,7 +40,7 @@ namespace osu.Game.Overlays.Options
|
||||
Anchor = Anchor.CentreLeft,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
FlowStrategy = FlowStrategies.GetVerticalFlow(),
|
||||
FlowStrategy = FlowStrategies.CreateVerticalFlow(),
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user