2020-03-04 04:26:25 +00:00
|
|
|
|
// 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;
|
2023-07-25 11:50:55 +00:00
|
|
|
|
using osu.Framework.Extensions.ObjectExtensions;
|
2020-03-04 04:26:25 +00:00
|
|
|
|
using osu.Game.Tournament.Models;
|
|
|
|
|
using osu.Game.Tournament.Screens.Editors;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Tournament.Tests.Screens
|
|
|
|
|
{
|
2023-07-24 09:22:32 +00:00
|
|
|
|
public partial class TestSceneSeedingEditorScreen : TournamentScreenTestScene
|
2020-03-04 04:26:25 +00:00
|
|
|
|
{
|
|
|
|
|
[Cached]
|
|
|
|
|
private readonly LadderInfo ladder = new LadderInfo();
|
|
|
|
|
|
2023-07-18 23:24:34 +00:00
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load()
|
2020-03-04 04:26:25 +00:00
|
|
|
|
{
|
2020-03-11 06:34:52 +00:00
|
|
|
|
var match = CreateSampleMatch();
|
2020-03-04 04:26:25 +00:00
|
|
|
|
|
2023-07-25 11:50:55 +00:00
|
|
|
|
Add(new SeedingEditorScreen(match.Team1.Value.AsNonNull(), new TeamEditorScreen())
|
2020-03-04 04:26:25 +00:00
|
|
|
|
{
|
|
|
|
|
Width = 0.85f // create room for control panel
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|