1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 18:07:24 +08:00
osu-lazer/osu.Game/GameModes/Play/PlaySongSelect.cs

45 lines
1.2 KiB
C#
Raw Normal View History

2016-09-29 19:13:58 +08:00
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.Collections.Generic;
2016-10-08 18:12:31 +08:00
using osu.Framework.Configuration;
using osu.Game.GameModes.Backgrounds;
2016-10-10 16:17:26 +08:00
using osu.Framework;
2016-09-29 19:13:58 +08:00
namespace osu.Game.GameModes.Play
{
2016-10-05 19:03:52 +08:00
class PlaySongSelect : GameModeWhiteBox
2016-09-29 19:13:58 +08:00
{
2016-10-08 18:12:31 +08:00
private Bindable<PlayMode> playMode;
2016-10-05 19:03:52 +08:00
protected override BackgroundMode CreateBackground() => new BackgroundModeCustom(@"Backgrounds/bg4");
2016-09-29 19:13:58 +08:00
protected override IEnumerable<Type> PossibleChildren => new[] {
typeof(ModSelect),
typeof(Player)
};
2016-10-06 22:33:28 +08:00
2016-10-10 16:17:26 +08:00
public override void Load(BaseGame game)
2016-10-06 22:33:28 +08:00
{
2016-10-10 16:17:26 +08:00
base.Load(game);
2016-10-06 22:33:28 +08:00
2016-10-10 16:17:26 +08:00
OsuGame osu = game as OsuGame;
2016-10-06 22:33:28 +08:00
2016-10-08 18:12:31 +08:00
playMode = osu.PlayMode;
playMode.ValueChanged += PlayMode_ValueChanged;
}
protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);
playMode.ValueChanged -= PlayMode_ValueChanged;
2016-10-06 22:33:28 +08:00
}
private void PlayMode_ValueChanged(object sender, EventArgs e)
{
}
2016-09-29 19:13:58 +08:00
}
}