2019-03-04 13:24:19 +09: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.
|
2018-11-06 14:49:09 +09:00
|
|
|
|
2020-03-11 10:18:41 +09:00
|
|
|
using osu.Framework.Extensions.Color4Extensions;
|
2018-11-07 01:20:32 +09:00
|
|
|
using osu.Framework.Graphics;
|
2020-03-06 16:03:18 +09:00
|
|
|
using osu.Framework.Graphics.Colour;
|
2018-11-07 01:20:32 +09:00
|
|
|
using osu.Game.Graphics.Cursor;
|
2020-03-06 16:03:18 +09:00
|
|
|
using osu.Game.Tournament.Models;
|
2020-03-03 19:14:44 +09:00
|
|
|
using osuTK.Graphics;
|
2018-11-06 14:49:09 +09:00
|
|
|
|
|
|
|
namespace osu.Game.Tournament
|
|
|
|
{
|
2018-11-06 18:32:59 +09:00
|
|
|
public class TournamentGame : TournamentGameBase
|
2018-11-06 14:49:09 +09:00
|
|
|
{
|
2020-03-06 16:03:18 +09:00
|
|
|
public static ColourInfo GetTeamColour(TeamColour teamColour) => teamColour == TeamColour.Red ? COLOUR_RED : COLOUR_BLUE;
|
|
|
|
|
2020-03-11 10:18:41 +09:00
|
|
|
public static readonly Color4 COLOUR_RED = Color4Extensions.FromHex("#AA1414");
|
|
|
|
public static readonly Color4 COLOUR_BLUE = Color4Extensions.FromHex("#1462AA");
|
2020-03-06 16:03:18 +09:00
|
|
|
|
2020-03-11 10:18:41 +09:00
|
|
|
public static readonly Color4 ELEMENT_BACKGROUND_COLOUR = Color4Extensions.FromHex("#fff");
|
|
|
|
public static readonly Color4 ELEMENT_FOREGROUND_COLOUR = Color4Extensions.FromHex("#000");
|
2020-03-06 16:03:18 +09:00
|
|
|
|
2020-03-11 10:18:41 +09:00
|
|
|
public static readonly Color4 TEXT_COLOUR = Color4Extensions.FromHex("#fff");
|
2020-03-03 19:14:44 +09:00
|
|
|
|
2018-11-06 14:49:09 +09:00
|
|
|
protected override void LoadComplete()
|
|
|
|
{
|
|
|
|
base.LoadComplete();
|
2018-11-07 01:20:32 +09:00
|
|
|
|
|
|
|
Add(new OsuContextMenuContainer
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
2019-06-14 17:17:47 +09:00
|
|
|
Child = new TournamentSceneManager()
|
2018-11-07 01:20:32 +09:00
|
|
|
});
|
2018-11-06 15:08:14 +09:00
|
|
|
|
2019-06-18 15:08:36 +09:00
|
|
|
// we don't want to show the menu cursor as it would appear on stream output.
|
2018-11-06 15:08:14 +09:00
|
|
|
MenuCursorContainer.Cursor.Alpha = 0;
|
2018-11-06 14:49:09 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|