mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Remove remaining usage of EditorRoundedScreen
This commit is contained in:
@ -4,11 +4,13 @@
|
||||
using System.Collections.Generic;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Game.Graphics.Containers;
|
||||
using osu.Game.Overlays;
|
||||
|
||||
namespace osu.Game.Screens.Edit.Setup
|
||||
{
|
||||
public class SetupScreen : EditorRoundedScreen
|
||||
public class SetupScreen : EditorScreen
|
||||
{
|
||||
[Cached]
|
||||
private SectionsContainer<SetupSection> sections { get; } = new SetupScreenSectionsContainer();
|
||||
@ -22,7 +24,7 @@ namespace osu.Game.Screens.Edit.Setup
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(EditorBeatmap beatmap)
|
||||
private void load(EditorBeatmap beatmap, OverlayColourProvider colourProvider)
|
||||
{
|
||||
var sectionsEnumerable = new List<SetupSection>
|
||||
{
|
||||
@ -37,6 +39,12 @@ namespace osu.Game.Screens.Edit.Setup
|
||||
if (rulesetSpecificSection != null)
|
||||
sectionsEnumerable.Add(rulesetSpecificSection);
|
||||
|
||||
Add(new Box
|
||||
{
|
||||
Colour = colourProvider.Background2,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
});
|
||||
|
||||
Add(sections.With(s =>
|
||||
{
|
||||
s.RelativeSizeAxes = Axes.Both;
|
||||
|
Reference in New Issue
Block a user