Allow cusotmisation of the colour portion of the tournament logo header

This commit is contained in:
Dean Herbert 2019-06-23 19:49:23 +09:00
parent 6449734a97
commit ba97b887b4
2 changed files with 1 additions and 13 deletions

View File

@ -5,7 +5,6 @@
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Input.Events;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
@ -191,8 +190,6 @@ private class RoundDisplay : CompositeDrawable
public RoundDisplay()
{
CornerRadius = 10;
Masking = true;
Width = 200;
Height = 20;
}
@ -208,11 +205,6 @@ private void matchChanged(ValueChangedEvent<TournamentMatch> match)
{
InternalChildren = new Drawable[]
{
new Box
{
Colour = new Color4(47, 71, 67, 255),
RelativeSizeAxes = Axes.Both,
},
new OsuSpriteText
{
Anchor = Anchor.Centre,

View File

@ -6,7 +6,6 @@
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osuTK;
namespace osu.Game.Tournament.Screens.Showcase
{
@ -15,7 +14,7 @@ public class TournamentLogo : CompositeDrawable
public TournamentLogo()
{
RelativeSizeAxes = Axes.X;
Height = 95;
AutoSizeAxes = Axes.Y;
Margin = new MarginPadding { Vertical = 5 };
}
@ -27,9 +26,6 @@ private void load(TextureStore textures)
Texture = textures.Get("game-screen-logo"),
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
FillMode = FillMode.Fit,
RelativeSizeAxes = Axes.Both,
Size = Vector2.One
};
}
}