mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 17:02:55 +08:00
Move background chooser to header
This commit is contained in:
parent
61f9eb51c4
commit
294d911426
@ -44,8 +44,7 @@ namespace osu.Game.Screens.Edit.Setup
|
|||||||
InternalChild = content = new Container
|
InternalChild = content = new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Masking = true,
|
Masking = true
|
||||||
CornerRadius = 10,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -133,7 +132,7 @@ namespace osu.Game.Screens.Edit.Setup
|
|||||||
Text = "Drag image here to set beatmap background!",
|
Text = "Drag image here to set beatmap background!",
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
AutoSizeAxes = Axes.X,
|
AutoSizeAxes = Axes.Both
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -54,11 +54,6 @@ namespace osu.Game.Screens.Edit.Setup
|
|||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new BackgroundChooser
|
|
||||||
{
|
|
||||||
RelativeSizeAxes = Axes.X,
|
|
||||||
Height = 250,
|
|
||||||
},
|
|
||||||
audioTrackTextBox = new FileChooserLabelledTextBox
|
audioTrackTextBox = new FileChooserLabelledTextBox
|
||||||
{
|
{
|
||||||
Label = "Audio Track",
|
Label = "Audio Track",
|
||||||
|
@ -25,12 +25,24 @@ namespace osu.Game.Screens.Edit.Setup
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
|
// reverse flow is used to ensure that the tab control's expandable bars extend over the background chooser.
|
||||||
|
Child = new ReverseChildIDFillFlowContainer<Drawable>
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.X,
|
||||||
|
AutoSizeAxes = Axes.Y,
|
||||||
|
Direction = FillDirection.Vertical,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
tabControl = new SetupScreenTabControl
|
tabControl = new SetupScreenTabControl
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Height = 30
|
Height = 30
|
||||||
|
},
|
||||||
|
new BackgroundChooser
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.X,
|
||||||
|
Height = 120
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user