mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 11:23:00 +08:00
FlowDirection -> FillDirection
This commit is contained in:
parent
9c853b0465
commit
4d28696479
@ -1 +1 @@
|
||||
Subproject commit f3aea04b0e6a6ebb6d6f24fcb2134058765c0df0
|
||||
Subproject commit 344593a63b2def4d1b9de5940e463a6ea9771b34
|
@ -60,13 +60,13 @@ namespace osu.Desktop.Overlays
|
||||
new FillFlowContainer
|
||||
{
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new FillFlowContainer
|
||||
{
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Direction = FlowDirection.Right,
|
||||
Direction = FillDirection.Right,
|
||||
Spacing = new Vector2(5),
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
|
@ -25,7 +25,7 @@ namespace osu.Game.Modes.Osu.Objects.Drawables
|
||||
AutoSizeAxes = Axes.Both;
|
||||
Origin = Anchor.Centre;
|
||||
|
||||
Direction = FlowDirection.Down;
|
||||
Direction = FillDirection.Down;
|
||||
Spacing = new Vector2(0, 2);
|
||||
Position = (h?.StackedEndPosition ?? Vector2.Zero) + judgement.PositionOffset;
|
||||
|
||||
|
@ -86,7 +86,7 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
new FillFlowContainer
|
||||
{
|
||||
Padding = new MarginPadding(5),
|
||||
Direction = FlowDirection.Right,
|
||||
Direction = FillDirection.Right,
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreLeft,
|
||||
@ -101,13 +101,13 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
new FillFlowContainer
|
||||
{
|
||||
Padding = new MarginPadding { Left = 5 },
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new FillFlowContainer
|
||||
{
|
||||
Direction = FlowDirection.Right,
|
||||
Direction = FillDirection.Right,
|
||||
Spacing = new Vector2(4, 0),
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Children = new[]
|
||||
|
@ -38,7 +38,7 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
},
|
||||
new FillFlowContainer
|
||||
{
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
Padding = new MarginPadding { Top = 5, Left = 18, Right = 10, Bottom = 10 },
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Children = new[]
|
||||
@ -112,7 +112,7 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
new FillFlowContainer
|
||||
{
|
||||
Depth = -1,
|
||||
Direction = FlowDirection.Right,
|
||||
Direction = FillDirection.Right,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
// This makes the gradient not be perfectly horizontal, but diagonal at a ~40° angle
|
||||
Shear = new Vector2(0.8f, 0),
|
||||
|
@ -21,7 +21,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
new FillFlowContainer
|
||||
{
|
||||
Direction = FlowDirection.Right,
|
||||
Direction = FillDirection.Right,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
Children = new Drawable[]
|
||||
|
@ -71,7 +71,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
stars = new FillFlowContainer<Star>
|
||||
{
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Direction = FlowDirection.Right,
|
||||
Direction = FillDirection.Right,
|
||||
Spacing = new Vector2(star_spacing),
|
||||
}
|
||||
};
|
||||
|
@ -41,7 +41,7 @@ namespace osu.Game.Online.Chat.Drawables
|
||||
{
|
||||
flow = new FillFlowContainer
|
||||
{
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
Padding = new MarginPadding { Left = 20, Right = 20 }
|
||||
|
@ -46,7 +46,7 @@ namespace osu.Game.Overlays
|
||||
{
|
||||
sections = new FillFlowContainer<NotificationSection>
|
||||
{
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Children = new []
|
||||
|
@ -60,7 +60,7 @@ namespace osu.Game.Overlays.Notifications
|
||||
{
|
||||
RelativeSizeAxes = Axes.X;
|
||||
AutoSizeAxes = Axes.Y;
|
||||
Direction = FlowDirection.Down;
|
||||
Direction = FillDirection.Down;
|
||||
|
||||
Padding = new MarginPadding
|
||||
{
|
||||
|
@ -89,7 +89,7 @@ namespace osu.Game.Overlays.Options
|
||||
{
|
||||
Items = new KeyValuePair<string, T>[0];
|
||||
|
||||
Direction = FlowDirection.Down;
|
||||
Direction = FillDirection.Down;
|
||||
RelativeSizeAxes = Axes.X;
|
||||
AutoSizeAxes = Axes.Y;
|
||||
Children = new Drawable[]
|
||||
|
@ -61,7 +61,7 @@ namespace osu.Game.Overlays.Options
|
||||
FlowContent = new FillFlowContainer
|
||||
{
|
||||
Margin = new MarginPadding { Top = header_size + header_margin },
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
Spacing = 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;
|
||||
Direction = FlowDirection.Down;
|
||||
Direction = FillDirection.Down;
|
||||
AddInternal(new Drawable[]
|
||||
{
|
||||
new OsuSpriteText
|
||||
@ -31,7 +31,7 @@ namespace osu.Game.Overlays.Options
|
||||
},
|
||||
content = new FillFlowContainer
|
||||
{
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
Spacing = new Vector2(0, 5),
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
|
@ -100,7 +100,7 @@ namespace osu.Game.Overlays.Options.Sections.General
|
||||
private void load(APIAccess api, OsuConfigManager config)
|
||||
{
|
||||
this.api = api;
|
||||
Direction = FlowDirection.Down;
|
||||
Direction = FillDirection.Down;
|
||||
Spacing = new Vector2(0, 5);
|
||||
AutoSizeAxes = Axes.Y;
|
||||
RelativeSizeAxes = Axes.X;
|
||||
|
@ -40,7 +40,7 @@ namespace osu.Game.Overlays.Options
|
||||
Anchor = Anchor.CentreLeft,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -77,7 +77,7 @@ namespace osu.Game.Overlays
|
||||
{
|
||||
AutoSizeAxes = Axes.Y,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
|
||||
Children = new Drawable[]
|
||||
{
|
||||
@ -98,7 +98,7 @@ namespace osu.Game.Overlays
|
||||
{
|
||||
AutoSizeAxes = Axes.Y,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
Children = sections,
|
||||
}
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ namespace osu.Game.Overlays.Pause
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
Spacing = new Vector2(0, 50),
|
||||
Origin = Anchor.Centre,
|
||||
Anchor = Anchor.Centre,
|
||||
@ -113,7 +113,7 @@ namespace osu.Game.Overlays.Pause
|
||||
new FillFlowContainer
|
||||
{
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
Spacing = new Vector2(0, 20),
|
||||
Origin = Anchor.TopCentre,
|
||||
Anchor = Anchor.TopCentre,
|
||||
|
@ -43,7 +43,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
new ToolbarBackground(),
|
||||
new FillFlowContainer
|
||||
{
|
||||
Direction = FlowDirection.Right,
|
||||
Direction = FillDirection.Right,
|
||||
RelativeSizeAxes = Axes.Y,
|
||||
AutoSizeAxes = Axes.X,
|
||||
Children = new Drawable[]
|
||||
@ -63,7 +63,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
{
|
||||
Anchor = Anchor.TopRight,
|
||||
Origin = Anchor.TopRight,
|
||||
Direction = FlowDirection.Right,
|
||||
Direction = FillDirection.Right,
|
||||
RelativeSizeAxes = Axes.Y,
|
||||
AutoSizeAxes = Axes.X,
|
||||
Children = new Drawable[]
|
||||
|
@ -84,7 +84,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
},
|
||||
Flow = new FillFlowContainer
|
||||
{
|
||||
Direction = FlowDirection.Right,
|
||||
Direction = FillDirection.Right,
|
||||
Spacing = new Vector2(5),
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
@ -107,7 +107,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
},
|
||||
tooltipContainer = new FillFlowContainer
|
||||
{
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
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,
|
||||
Direction = FlowDirection.Right,
|
||||
Direction = FillDirection.Right,
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
Padding = new MarginPadding { Left = padding, Right = padding },
|
||||
|
@ -126,7 +126,7 @@ namespace osu.Game.Screens
|
||||
},
|
||||
childModeButtons = new FillFlowContainer
|
||||
{
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
Anchor = Anchor.TopRight,
|
||||
Origin = Anchor.TopRight,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
|
@ -78,7 +78,7 @@ namespace osu.Game.Screens.Menu
|
||||
},
|
||||
buttonFlow = new FlowContainerWithOrigin
|
||||
{
|
||||
Direction = FlowDirection.Right,
|
||||
Direction = FillDirection.Right,
|
||||
Spacing = new Vector2(-WEDGE_WIDTH, 0),
|
||||
Anchor = Anchor.Centre,
|
||||
AutoSizeAxes = Axes.Both,
|
||||
|
@ -32,7 +32,7 @@ namespace osu.Game.Screens.Menu
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
Spacing = new Vector2(0, 2),
|
||||
Children = new Drawable[]
|
||||
{
|
||||
|
@ -12,7 +12,7 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
public KeyCounterCollection()
|
||||
{
|
||||
Direction = FlowDirection.Right;
|
||||
Direction = FillDirection.Right;
|
||||
AutoSizeAxes = Axes.Both;
|
||||
}
|
||||
|
||||
|
@ -136,7 +136,7 @@ namespace osu.Game.Screens.Play
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Origin = Anchor.TopCentre,
|
||||
Anchor = Anchor.TopCentre,
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new OsuSpriteText
|
||||
|
@ -68,7 +68,7 @@ namespace osu.Game.Screens.Ranking
|
||||
new FillFlowContainer
|
||||
{
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new OsuSpriteText
|
||||
|
@ -125,7 +125,7 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
Anchor = Anchor.BottomLeft,
|
||||
Origin = Anchor.BottomLeft,
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
Margin = new MarginPadding { Top = 10, Left = 25, Right = 10, Bottom = 20 },
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Children = new Drawable[]
|
||||
@ -147,7 +147,7 @@ namespace osu.Game.Screens.Select
|
||||
new FillFlowContainer
|
||||
{
|
||||
Margin = new MarginPadding { Top = 10 },
|
||||
Direction = FlowDirection.Right,
|
||||
Direction = FillDirection.Right,
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Children = new []
|
||||
{
|
||||
|
@ -44,7 +44,7 @@ namespace osu.Game.Screens.Select
|
||||
Anchor = Anchor.TopRight,
|
||||
Origin = Anchor.TopRight,
|
||||
Width = 0.4f, // TODO: InnerWidth property or something
|
||||
Direction = FlowDirection.Down,
|
||||
Direction = FillDirection.Down,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
searchTextBox = new SearchTextBox {
|
||||
@ -177,7 +177,7 @@ namespace osu.Game.Screens.Select
|
||||
new FillFlowContainer
|
||||
{
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Direction = FlowDirection.Right,
|
||||
Direction = FillDirection.Right,
|
||||
Spacing = new Vector2(10, 0),
|
||||
Children = new Drawable[]
|
||||
{
|
||||
@ -209,7 +209,7 @@ namespace osu.Game.Screens.Select
|
||||
new FillFlowContainer
|
||||
{
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Direction = FlowDirection.Right,
|
||||
Direction = FillDirection.Right,
|
||||
Spacing = new Vector2(10, 0),
|
||||
Origin = Anchor.TopRight,
|
||||
Anchor = Anchor.TopRight,
|
||||
|
@ -98,13 +98,13 @@ namespace osu.Game.Screens.Select
|
||||
Position = new Vector2(BackButton.SIZE_EXTENDED.X + padding, 0),
|
||||
RelativeSizeAxes = Axes.Y,
|
||||
AutoSizeAxes = Axes.X,
|
||||
Direction = FlowDirection.Right,
|
||||
Direction = FillDirection.Right,
|
||||
Spacing = new Vector2(padding, 0),
|
||||
Children = new Drawable[]
|
||||
{
|
||||
buttons = new FillFlowContainer
|
||||
{
|
||||
Direction = FlowDirection.Right,
|
||||
Direction = FillDirection.Right,
|
||||
Spacing = new Vector2(0.2f, 0),
|
||||
AutoSizeAxes = Axes.Both,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user