mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 08:22:59 +08:00
Merge pull request #11908 from peppy/fix-drawings-flag-sizing
Fix tournament drawings screen flags being too big
This commit is contained in:
commit
6bf5df407d
35
osu.Game.Tournament.Tests/Screens/TestSceneDrawingsScreen.cs
Normal file
35
osu.Game.Tournament.Tests/Screens/TestSceneDrawingsScreen.cs
Normal file
@ -0,0 +1,35 @@
|
||||
// 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
|
||||
{
|
||||
public class TestSceneDrawingsScreen : TournamentTestScene
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(Storage storage)
|
||||
{
|
||||
using (var stream = storage.GetStream("drawings.txt", FileAccess.Write))
|
||||
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()
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
@ -345,7 +345,7 @@ namespace osu.Game.Tournament.Screens.Drawings.Components
|
||||
|
||||
Flag.Anchor = Anchor.Centre;
|
||||
Flag.Origin = Anchor.Centre;
|
||||
Flag.Scale = new Vector2(0.9f);
|
||||
Flag.Scale = new Vector2(0.7f);
|
||||
|
||||
InternalChildren = new Drawable[]
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user