1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 19:47:19 +08:00

36 lines
1.0 KiB
C#
Raw Normal View History

2023-06-23 01:37:25 +09:00
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2019-03-04 13:24:19 +09:00
// See the LICENCE file in the repository root for full licence text.
2018-11-16 20:34:51 +09:00
2018-11-11 09:16:46 +09: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
{
2022-11-24 14:32:20 +09:00
public partial class TournamentLogo : CompositeDrawable
2018-11-11 09:16:46 +09:00
{
public TournamentLogo()
2018-11-11 09:16:46 +09:00
{
RelativeSizeAxes = Axes.X;
Margin = new MarginPadding { Vertical = 5 };
Height = 100;
2018-11-11 09:16:46 +09:00
}
[BackgroundDependencyLoader]
private void load(TextureStore textures)
{
InternalChild = new Sprite
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
FillMode = FillMode.Fit,
RelativeSizeAxes = Axes.Both,
2020-03-16 13:09:15 +01:00
Texture = textures.Get("header-logo"),
2018-11-11 09:16:46 +09:00
};
}
}
}