1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-06 21:52:58 +08:00

Hide Options and MusicController when switching to Player

Just something I noticed while playing around with the MusicController, as it can't be hidden without the corresponding toolbar button (yet) and it stays on screen when playing a beatmap.

This PR just hides the Options and MusicController overlays on switching to the Player GameMode and so prevents the user from causing exceptions due to seeking in the Player mode.
This commit is contained in:
Andreas N 2016-11-10 11:09:20 +01:00 committed by GitHub
parent 788c11de10
commit 32e9db9273

View File

@ -162,6 +162,8 @@ namespace osu.Game
{
Toolbar.State = Visibility.Hidden;
Chat.State = Visibility.Hidden;
MusicController.State = Visibility.Hidden;
Options.State = Visibility.Hidden;
}
else
{