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

@ -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[]

View File

@ -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,

View File

@ -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 },