mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Improve white-boxed game modes.
This commit is contained in:
@ -6,7 +6,9 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using osu.Framework.GameModes;
|
||||
using osu.Game.GameModes.Play;
|
||||
using OpenTK.Graphics;
|
||||
|
||||
namespace osu.Game.GameModes.Multiplayer
|
||||
{
|
||||
@ -16,5 +18,19 @@ namespace osu.Game.GameModes.Multiplayer
|
||||
typeof(MatchSongSelect),
|
||||
typeof(Player),
|
||||
};
|
||||
|
||||
protected override BackgroundMode CreateBackground() => new BackgroundModeCustom(@"Backgrounds/bg4");
|
||||
|
||||
protected override void OnEntering(GameMode last)
|
||||
{
|
||||
base.OnEntering(last);
|
||||
Background.FadeColour(Color4.DarkGray, 500);
|
||||
}
|
||||
|
||||
protected override void OnExiting(GameMode next)
|
||||
{
|
||||
base.OnExiting(next);
|
||||
Background.FadeColour(Color4.White, 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user