mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 10:33:07 +08:00
Add background.
This commit is contained in:
parent
44f3dfa3fe
commit
1e15318da6
@ -1 +1 @@
|
||||
Subproject commit 0e258afd11a68cb81773fabd49da7c8701dc3d34
|
||||
Subproject commit 668af4d1854960b086fe89b4a981761f0f68109e
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user