mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +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:
@ -43,7 +43,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
new ToolbarBackground(),
|
||||
new FlowContainer
|
||||
{
|
||||
FlowStrategy = FlowStrategies.GetHorizontalFlow(),
|
||||
FlowStrategy = FlowStrategies.CreateHorizontalFlow(),
|
||||
RelativeSizeAxes = Axes.Y,
|
||||
AutoSizeAxes = Axes.X,
|
||||
Children = new Drawable[]
|
||||
@ -63,7 +63,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
{
|
||||
Anchor = Anchor.TopRight,
|
||||
Origin = Anchor.TopRight,
|
||||
FlowStrategy = FlowStrategies.GetHorizontalFlow(),
|
||||
FlowStrategy = FlowStrategies.CreateHorizontalFlow(),
|
||||
RelativeSizeAxes = Axes.Y,
|
||||
AutoSizeAxes = Axes.X,
|
||||
Children = new Drawable[]
|
||||
|
@ -84,7 +84,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
},
|
||||
Flow = new FlowContainer
|
||||
{
|
||||
FlowStrategy = FlowStrategies.GetHorizontalFlow(new Vector2(5)),
|
||||
FlowStrategy = FlowStrategies.CreateHorizontalFlow(new Vector2(5)),
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
Padding = new MarginPadding { Left = Toolbar.HEIGHT / 2, Right = Toolbar.HEIGHT / 2 },
|
||||
@ -106,7 +106,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
},
|
||||
tooltipContainer = new FlowContainer
|
||||
{
|
||||
FlowStrategy = FlowStrategies.GetVerticalFlow(),
|
||||
FlowStrategy = FlowStrategies.CreateVerticalFlow(),
|
||||
RelativeSizeAxes = Axes.Both, //stops us being considered in parent's autosize
|
||||
Anchor = (TooltipAnchor & Anchor.x0) > 0 ? Anchor.BottomLeft : Anchor.BottomRight,
|
||||
Origin = TooltipAnchor,
|
||||
|
@ -36,7 +36,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
{
|
||||
RelativeSizeAxes = Axes.Y,
|
||||
AutoSizeAxes = Axes.X,
|
||||
FlowStrategy = FlowStrategies.GetHorizontalFlow(),
|
||||
FlowStrategy = FlowStrategies.CreateHorizontalFlow(),
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
Padding = new MarginPadding { Left = padding, Right = padding },
|
||||
|
Reference in New Issue
Block a user