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