// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics; using osu.Framework.Graphics.Sprites; using osu.Game.Graphics; using osu.Game.Graphics.Cursor; namespace osu.Game.Tournament { public class TournamentGame : TournamentGameBase { protected override void LoadComplete() { base.LoadComplete(); Add(new OsuContextMenuContainer { RelativeSizeAxes = Axes.Both, Child = new TournamentSceneManager() }); MenuCursorContainer.Cursor.Alpha = 0; } } public static class TournamentFontExtensions { /// /// Creates a new by applying adjustments to this . /// /// The base . /// The font typeface. If null, the value is copied from this . /// The text size. If null, the value is copied from this . /// The font weight. If null, the value is copied from this . /// Whether the font is italic. If null, the value is copied from this . /// Whether all characters should be spaced apart the same distance. If null, the value is copied from this . /// The resulting . public static FontUsage With(this FontUsage usage, TournamentTypeface? typeface = null, float? size = null, FontWeight? weight = null, bool? italics = null, bool? fixedWidth = null) { string familyString = typeface != null ? TournamentFont.GetFamilyString(typeface.Value) : usage.Family; string weightString = weight != null ? TournamentFont.GetWeightString(familyString, weight.Value) : usage.Weight; return usage.With(familyString, size, weightString, italics, fixedWidth); } } public enum TournamentTypeface { Aquatico } }