Add tab control to setup screen header

This commit is contained in:
Bartłomiej Dach
2021-04-03 20:02:26 +02:00
parent 95d7e6c74b
commit 3572178bdc
3 changed files with 113 additions and 17 deletions

View File

@ -13,12 +13,17 @@ namespace osu.Game.Screens.Edit.Setup
{
public class SetupScreen : EditorScreen
{
public const int HORIZONTAL_PADDING = 100;
[Resolved]
private OsuColour colours { get; set; }
[Cached]
protected readonly OverlayColourProvider ColourProvider;
[Cached]
private SectionsContainer<SetupSection> sections = new SectionsContainer<SetupSection>();
public SetupScreen()
: base(EditorScreenMode.SongSetup)
{
@ -44,7 +49,7 @@ namespace osu.Game.Screens.Edit.Setup
Colour = ColourProvider.Dark4,
RelativeSizeAxes = Axes.Both,
},
new SectionsContainer<SetupSection>
sections = new SectionsContainer<SetupSection>
{
FixedHeader = new SetupScreenHeader(),
RelativeSizeAxes = Axes.Both,
@ -60,19 +65,4 @@ namespace osu.Game.Screens.Edit.Setup
};
}
}
internal class SetupScreenHeader : OverlayHeader
{
protected override OverlayTitle CreateTitle() => new SetupScreenTitle();
private class SetupScreenTitle : OverlayTitle
{
public SetupScreenTitle()
{
Title = "beatmap setup";
Description = "change general settings of your beatmap";
IconTexture = "Icons/Hexacons/social";
}
}
}
}