From e25e7319e916cae828e81d3add2112c1cdd9348e Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 6 Oct 2016 23:33:28 +0900 Subject: [PATCH] Add sample usage of PlayMode bindable. --- osu.Game/GameModes/Play/PlaySongSelect.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/osu.Game/GameModes/Play/PlaySongSelect.cs b/osu.Game/GameModes/Play/PlaySongSelect.cs index 3346ae137d..c790036d7f 100644 --- a/osu.Game/GameModes/Play/PlaySongSelect.cs +++ b/osu.Game/GameModes/Play/PlaySongSelect.cs @@ -15,5 +15,18 @@ namespace osu.Game.GameModes.Play typeof(ModSelect), typeof(Player) }; + + public override void Load() + { + base.Load(); + + OsuGame osu = Game as OsuGame; + + osu.PlayMode.ValueChanged += PlayMode_ValueChanged; + } + + private void PlayMode_ValueChanged(object sender, EventArgs e) + { + } } }