1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:42:56 +08:00

Add SocialOverlay to OsuGame

This commit is contained in:
DrabWeb 2017-05-26 00:58:18 -03:00
parent 8fca0fddb3
commit 63313045d9

View File

@ -43,6 +43,8 @@ namespace osu.Game
private DirectOverlay direct;
private SocialOverlay social;
private Intro intro
{
get
@ -165,6 +167,7 @@ namespace osu.Game
//overlay elements
LoadComponentAsync(direct = new DirectOverlay { Depth = -1 }, mainContent.Add);
LoadComponentAsync(social = new SocialOverlay { Depth = -1 }, mainContent.Add);
LoadComponentAsync(chat = new ChatOverlay { Depth = -1 }, mainContent.Add);
LoadComponentAsync(settings = new SettingsOverlay { Depth = -1 }, overlayContent.Add);
LoadComponentAsync(musicController = new MusicController
@ -234,6 +237,9 @@ namespace osu.Game
case Key.F8:
chat.ToggleVisibility();
return true;
case Key.F9:
social.ToggleVisibility();
return true;
case Key.PageUp:
case Key.PageDown:
var swClock = (Clock as ThrottledFrameClock)?.Source as StopwatchClock;