Add toolbar toggle button

Also ensure chat is hidden when social is displayed and vice-versa.
This commit is contained in:
Dean Herbert
2017-06-07 20:15:58 +09:00
parent fc2d9816df
commit 97db4856fc
4 changed files with 29 additions and 0 deletions

View File

@ -201,11 +201,16 @@ namespace osu.Game
};
Dependencies.Cache(settings);
Dependencies.Cache(social);
Dependencies.Cache(chat);
Dependencies.Cache(musicController);
Dependencies.Cache(notificationManager);
Dependencies.Cache(dialogOverlay);
// ensure both overlays aren't presented at the same time
chat.StateChanged += (container, state) => social.State = state == Visibility.Visible ? Visibility.Hidden : social.State;
social.StateChanged += (container, state) => chat.State = state == Visibility.Visible ? Visibility.Hidden : chat.State;
LoadComponentAsync(Toolbar = new Toolbar
{
Depth = -3,