Explicitly associate setup sections with titles

This commit is contained in:
Bartłomiej Dach
2021-04-03 19:02:33 +02:00
parent bdd1072dce
commit 95d7e6c74b
4 changed files with 36 additions and 23 deletions

View File

@ -11,12 +11,12 @@ using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Localisation;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.Drawables;
using osu.Game.Database;
using osu.Game.Graphics;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterfaceV2;
using osu.Game.Overlays;
@ -27,6 +27,8 @@ namespace osu.Game.Screens.Edit.Setup
private LabelledTextBox audioTrackTextBox;
private Container backgroundSpriteContainer;
public override LocalisableString Title => "Resources";
public IEnumerable<string> HandledExtensions => ImageExtensions.Concat(AudioExtensions);
public static string[] ImageExtensions { get; } = { ".jpg", ".jpeg", ".png" };
@ -66,10 +68,6 @@ namespace osu.Game.Screens.Edit.Setup
Masking = true,
CornerRadius = 10,
},
new OsuSpriteText
{
Text = "Resources"
},
audioTrackTextBox = new FileChooserLabelledTextBox
{
Label = "Audio Track",