mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:07:52 +08:00
Add boilerplate logic
This commit is contained in:
parent
9fe7675be8
commit
3b52e7c724
17
osu.Game.Tournament.Tests/Screens/TestSceneSetupScreen.cs
Normal file
17
osu.Game.Tournament.Tests/Screens/TestSceneSetupScreen.cs
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Game.Tournament.Screens;
|
||||
|
||||
namespace osu.Game.Tournament.Tests.Screens
|
||||
{
|
||||
public class TestSceneSetupScreen : TournamentTestScene
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
Add(new SetupScreen());
|
||||
}
|
||||
}
|
||||
}
|
9
osu.Game.Tournament/Screens/SetupScreen.cs
Normal file
9
osu.Game.Tournament/Screens/SetupScreen.cs
Normal file
@ -0,0 +1,9 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
namespace osu.Game.Tournament.Screens
|
||||
{
|
||||
public class SetupScreen : TournamentScreen
|
||||
{
|
||||
}
|
||||
}
|
@ -106,6 +106,8 @@ namespace osu.Game.Tournament
|
||||
Direction = FillDirection.Vertical,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new OsuButton { RelativeSizeAxes = Axes.X, Text = "Setup", Action = () => SetScreen(typeof(SetupScreen)) },
|
||||
new Container { RelativeSizeAxes = Axes.X, Height = 50 },
|
||||
new OsuButton { RelativeSizeAxes = Axes.X, Text = "Team Editor", Action = () => SetScreen(typeof(TeamEditorScreen)) },
|
||||
new OsuButton { RelativeSizeAxes = Axes.X, Text = "Rounds Editor", Action = () => SetScreen(typeof(RoundEditorScreen)) },
|
||||
new OsuButton { RelativeSizeAxes = Axes.X, Text = "Bracket Editor", Action = () => SetScreen(typeof(LadderEditorScreen)) },
|
||||
|
Loading…
Reference in New Issue
Block a user