2019-03-04 12:24:19 +08: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-16 19:34:51 +08:00
|
|
|
|
2018-11-11 08:16:46 +08:00
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
|
|
|
using osu.Framework.Graphics.Textures;
|
2018-11-22 09:25:30 +08:00
|
|
|
using osuTK;
|
2018-11-11 08:16:46 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Tournament.Screens.Showcase
|
|
|
|
{
|
|
|
|
public class TournamentLogo : CompositeDrawable
|
|
|
|
{
|
|
|
|
public TournamentLogo()
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.X;
|
2018-11-22 14:42:10 +08:00
|
|
|
Height = 95;
|
2018-11-11 08:16:46 +08:00
|
|
|
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
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|