// Copyright (c) 2007-2018 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Textures; using osuTK; namespace osu.Game.Tournament.Screens.Showcase { public class TournamentLogo : CompositeDrawable { public TournamentLogo() { RelativeSizeAxes = Axes.X; Height = 95; Margin = new MarginPadding { Vertical = 5 }; } [BackgroundDependencyLoader] private void load(TextureStore textures) { InternalChild = new Sprite { Texture = textures.Get("game-screen-logo"), Anchor = Anchor.TopCentre, Origin = Anchor.TopCentre, FillMode = FillMode.Fit, RelativeSizeAxes = Axes.Both, Size = Vector2.One }; } } }