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-16 11:34:51 +00:00
|
|
|
|
2018-11-11 00:16:46 +00:00
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
|
|
|
using osu.Framework.Graphics.Textures;
|
|
|
|
|
|
|
|
namespace osu.Game.Tournament.Screens.Showcase
|
|
|
|
{
|
|
|
|
public class TournamentLogo : CompositeDrawable
|
|
|
|
{
|
2020-03-03 10:14:44 +00:00
|
|
|
public TournamentLogo()
|
2018-11-11 00:16:46 +00:00
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.X;
|
|
|
|
Margin = new MarginPadding { Vertical = 5 };
|
2019-06-23 11:09:42 +00:00
|
|
|
|
2020-03-03 10:14:44 +00:00
|
|
|
Height = 100;
|
2018-11-11 00:16:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(TextureStore textures)
|
|
|
|
{
|
|
|
|
InternalChild = new Sprite
|
|
|
|
{
|
|
|
|
Anchor = Anchor.TopCentre,
|
|
|
|
Origin = Anchor.TopCentre,
|
2020-03-03 10:14:44 +00:00
|
|
|
FillMode = FillMode.Fit,
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
2020-03-16 12:09:15 +00:00
|
|
|
Texture = textures.Get("header-logo"),
|
2018-11-11 00:16:46 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|