2021-02-26 08:54:51 +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 System.IO;
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Platform;
|
|
|
|
|
using osu.Game.Graphics.Cursor;
|
|
|
|
|
using osu.Game.Tournament.Screens.Drawings;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Tournament.Tests.Screens
|
|
|
|
|
{
|
2023-07-24 09:22:32 +00:00
|
|
|
|
public partial class TestSceneDrawingsScreen : TournamentScreenTestScene
|
2021-02-26 08:54:51 +00:00
|
|
|
|
{
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(Storage storage)
|
|
|
|
|
{
|
2022-05-16 09:03:53 +00:00
|
|
|
|
using (var stream = storage.CreateFileSafely("drawings.txt"))
|
2021-02-26 08:54:51 +00:00
|
|
|
|
using (var writer = new StreamWriter(stream))
|
|
|
|
|
{
|
|
|
|
|
writer.WriteLine("KR : South Korea : KOR");
|
|
|
|
|
writer.WriteLine("US : United States : USA");
|
|
|
|
|
writer.WriteLine("PH : Philippines : PHL");
|
|
|
|
|
writer.WriteLine("BR : Brazil : BRA");
|
|
|
|
|
writer.WriteLine("JP : Japan : JPN");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Add(new OsuContextMenuContainer
|
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
|
Child = new DrawingsScreen()
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|