mirror of
https://github.com/ppy/osu
synced 2024-12-14 19:06:07 +00:00
32 lines
843 B
C#
32 lines
843 B
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Graphics.Cursor;
|
|
using osu.Game.Tournament.Screens.Ladder;
|
|
|
|
namespace osu.Game.Tournament.Tests
|
|
{
|
|
public class TestCaseLadderManager : LadderTestCase
|
|
{
|
|
[Cached]
|
|
private readonly LadderManager manager;
|
|
|
|
public TestCaseLadderManager()
|
|
{
|
|
Add(new OsuContextMenuContainer
|
|
{
|
|
RelativeSizeAxes = Axes.Both,
|
|
Child = manager = new LadderManager(Ladder)
|
|
});
|
|
}
|
|
|
|
protected override void SaveChanges()
|
|
{
|
|
Ladder = manager.CreateInfo();
|
|
base.SaveChanges();
|
|
}
|
|
}
|
|
}
|