From 1e15318da64497712b70575af2ebe479375f08f0 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Tue, 28 Feb 2017 10:26:37 +0900 Subject: [PATCH] Add background. --- osu-resources | 2 +- osu.Game/Screens/Tournament/Drawings.cs | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/osu-resources b/osu-resources index 0e258afd11..668af4d185 160000 --- a/osu-resources +++ b/osu-resources @@ -1 +1 @@ -Subproject commit 0e258afd11a68cb81773fabd49da7c8701dc3d34 +Subproject commit 668af4d1854960b086fe89b4a981761f0f68109e diff --git a/osu.Game/Screens/Tournament/Drawings.cs b/osu.Game/Screens/Tournament/Drawings.cs index 08c7733afb..1143241496 100644 --- a/osu.Game/Screens/Tournament/Drawings.cs +++ b/osu.Game/Screens/Tournament/Drawings.cs @@ -18,6 +18,7 @@ using osu.Framework.Input; using System.IO; using osu.Framework.Allocation; using osu.Framework.Configuration; +using osu.Framework.Graphics.Textures; namespace osu.Game.Screens.Tournament { @@ -36,7 +37,7 @@ namespace osu.Game.Screens.Tournament } [BackgroundDependencyLoader] - private void load(Framework.Game game) + private void load(Framework.Game game, TextureStore textures) { drawingsConfig = new DrawingsConfigManager(Game.Host.Storage); @@ -45,6 +46,16 @@ namespace osu.Game.Screens.Tournament Children = new Drawable[] { + new Box() + { + RelativeSizeAxes = Axes.Both, + Colour = new Color4(77, 77, 77, 255) + }, + new Sprite() + { + FillMode = FillMode.Fill, + Texture = textures.Get(@"Backgrounds/Drawings/background.png") + }, new FlowContainer() { RelativeSizeAxes = Axes.Both,