mirror of
https://github.com/ppy/osu
synced 2024-12-23 23:33:36 +00:00
Add a warning and link for more information on drawings.txt
population
This commit is contained in:
parent
3a347188a5
commit
6249ce0ea3
@ -9,11 +9,13 @@ using System.Threading.Tasks;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Framework.Graphics.Textures;
|
||||
using osu.Framework.Logging;
|
||||
using osu.Framework.Platform;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.Containers;
|
||||
using osu.Game.Tournament.Components;
|
||||
using osu.Game.Tournament.Models;
|
||||
using osu.Game.Tournament.Screens.Drawings.Components;
|
||||
@ -51,6 +53,29 @@ namespace osu.Game.Tournament.Screens.Drawings
|
||||
|
||||
if (!TeamList.Teams.Any())
|
||||
{
|
||||
LinkFlowContainer links;
|
||||
|
||||
InternalChildren = new Drawable[]
|
||||
{
|
||||
new Box
|
||||
{
|
||||
Colour = Color4.Black,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Height = 0.3f,
|
||||
},
|
||||
new WarningBox("No drawings.txt file found. Please create one and restart the client."),
|
||||
links = new LinkFlowContainer
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Y = 60,
|
||||
AutoSizeAxes = Axes.Both
|
||||
}
|
||||
};
|
||||
|
||||
links.AddLink("Click for details on the file format", "https://osu.ppy.sh/wiki/en/Tournament_Drawings", t => t.Colour = Color4.White);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user