Update drawings design

This commit is contained in:
Dean Herbert 2018-11-04 04:58:35 +09:00
parent 5006dc47a3
commit b610095ff5
2 changed files with 131 additions and 132 deletions

View File

@ -10,6 +10,7 @@ using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Threading;
using osu.Game.Graphics;
using osu.Game.Tournament.Components;
using OpenTK;
using OpenTK.Graphics;
@ -52,6 +53,7 @@ namespace osu.Game.Tournament.Screens.Drawings.Components
Origin = Anchor.Centre,
AutoSizeAxes = Axes.Both,
Colour = OsuColour.Gray(0.33f),
Masking = true,
CornerRadius = 10f,
@ -358,6 +360,7 @@ namespace osu.Game.Tournament.Screens.Drawings.Components
outline = new Box
{
RelativeSizeAxes = Axes.Both,
Colour = OsuColour.Gray(0.33f),
Alpha = 0
},
Flag

View File

@ -12,13 +12,14 @@ using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Framework.Graphics.Video;
using osu.Framework.IO.Stores;
using osu.Framework.Logging;
using osu.Framework.Platform;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface;
using osu.Game.Screens;
using osu.Game.Screens.Backgrounds;
using osu.Game.Tournament.Components;
using osu.Game.Tournament.Screens.Drawings.Components;
using OpenTK;
@ -32,7 +33,7 @@ namespace osu.Game.Tournament.Screens.Drawings
protected override bool HideOverlaysOnEnter => true;
protected override BackgroundScreen CreateBackground() => new BackgroundScreenDefault();
protected override BackgroundScreen CreateBackground() => null;
private ScrollingTeamContainer teamsContainer;
private GroupContainer groupsContainer;
@ -56,6 +57,8 @@ namespace osu.Game.Tournament.Screens.Drawings
[BackgroundDependencyLoader]
private void load(TextureStore textures, Storage storage)
{
RelativeSizeAxes = Axes.Both;
this.storage = storage;
TextureStore flagStore = new TextureStore();
@ -79,10 +82,16 @@ namespace osu.Game.Tournament.Screens.Drawings
Children = new Drawable[]
{
new Box
// Main container
new Container
{
RelativeSizeAxes = Axes.Both,
Colour = new Color4(77, 77, 77, 255)
Children = new Drawable[]
{
new VideoSprite(@"C:\Users\Dean\BG Logoless - OWC.m4v")
{
RelativeSizeAxes = Axes.Both,
Loop = true,
},
new Sprite
{
@ -90,21 +99,6 @@ namespace osu.Game.Tournament.Screens.Drawings
FillMode = FillMode.Fill,
Texture = textures.Get(@"Backgrounds/Drawings/background.png")
},
new FillFlowContainer
{
RelativeSizeAxes = Axes.Both,
Direction = FillDirection.Horizontal,
Children = new Drawable[]
{
// Main container
new Container
{
RelativeSizeAxes = Axes.Both,
Width = 0.85f,
Children = new Drawable[]
{
// Visualiser
new VisualiserContainer
{
@ -149,6 +143,8 @@ namespace osu.Game.Tournament.Screens.Drawings
Position = new Vector2(0, 45f),
Colour = OsuColour.Gray(0.33f),
Alpha = 0,
Font = "Exo2.0-Light",
@ -160,7 +156,9 @@ namespace osu.Game.Tournament.Screens.Drawings
new Container
{
RelativeSizeAxes = Axes.Both,
AlwaysPresent = true,
Width = 0.15f,
Anchor = Anchor.TopRight,
Children = new Drawable[]
{
@ -244,8 +242,6 @@ namespace osu.Game.Tournament.Screens.Drawings
}
}
}
}
}
};
teamsContainer.OnSelected += onTeamSelected;