1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 10:33:07 +08:00

Add background.

This commit is contained in:
smoogipooo 2017-02-28 10:26:37 +09:00
parent 44f3dfa3fe
commit 1e15318da6
2 changed files with 13 additions and 2 deletions

@ -1 +1 @@
Subproject commit 0e258afd11a68cb81773fabd49da7c8701dc3d34
Subproject commit 668af4d1854960b086fe89b4a981761f0f68109e

View File

@ -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,