1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 00:47:24 +08:00

Fix FlowContainers.

This commit is contained in:
Dean Herbert 2016-10-22 18:05:46 +09:00
parent cdef75c98b
commit 28a41dcca6
6 changed files with 9 additions and 1 deletions

View File

@ -80,8 +80,9 @@ namespace osu.Game.GameModes.Menu
{
Direction = FlowDirection.HorizontalOnly,
Anchor = Anchor.Centre,
AutoSizeAxes = Axes.Both,
Spacing = new Vector2(-wedge_width, 0),
Children = new Drawable[]
Children = new[]
{
settingsButton = new Button(@"settings", @"options", FontAwesome.gear, new Color4(85, 85, 85, 255), OnSettings, -wedge_width, Key.O),
backButton = new Button(@"back", @"back", FontAwesome.fa_osu_left_o, new Color4(51, 58, 94, 255), onBack, -wedge_width, Key.Escape),

View File

@ -45,6 +45,7 @@ namespace osu.Game.Online.Chat.Display
{
Direction = FlowDirection.VerticalOnly,
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Spacing = new Vector2(1, 1)
}
}

View File

@ -57,6 +57,7 @@ namespace osu.Game.Overlays
{
Direction = FlowDirection.HorizontalOnly,
RelativeSizeAxes = Axes.Y,
AutoSizeAxes = Axes.X,
Children = new Drawable[]
{
new ToolbarButton
@ -85,6 +86,7 @@ namespace osu.Game.Overlays
Origin = Anchor.TopRight,
Direction = FlowDirection.HorizontalOnly,
RelativeSizeAxes = Axes.Y,
AutoSizeAxes = Axes.X,
Children = new []
{
new ToolbarButton

View File

@ -77,6 +77,7 @@ namespace osu.Game.Overlays
Origin = Anchor.TopCentre,
Padding = new MarginPadding { Left = 5, Right = 5 },
RelativeSizeAxes = Axes.Y,
AutoSizeAxes = Axes.X,
Children = new Drawable[]
{
DrawableIcon = new TextAwesome
@ -95,6 +96,7 @@ namespace osu.Game.Overlays
tooltipContainer = new FlowContainer
{
Direction = FlowDirection.VerticalOnly,
AutoSizeAxes = Axes.Both,
Anchor = Anchor.BottomLeft,
Position = new Vector2(5, -5),
Alpha = 0,

View File

@ -44,6 +44,7 @@ namespace osu.Game.Overlays
modeButtons = new FlowContainer
{
RelativeSizeAxes = Axes.Y,
AutoSizeAxes = Axes.X,
Direction = FlowDirection.HorizontalOnly,
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,

View File

@ -42,6 +42,7 @@ namespace osu.Game
{
volumeMetersContainer = new FlowContainer
{
AutoSizeAxes = Axes.Both,
Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight,
Position = new Vector2(10, 30),