mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 20:47:22 +08:00
Add SocialOverlay to OsuGame
This commit is contained in:
parent
8fca0fddb3
commit
63313045d9
@ -43,6 +43,8 @@ namespace osu.Game
|
|||||||
|
|
||||||
private DirectOverlay direct;
|
private DirectOverlay direct;
|
||||||
|
|
||||||
|
private SocialOverlay social;
|
||||||
|
|
||||||
private Intro intro
|
private Intro intro
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -165,6 +167,7 @@ namespace osu.Game
|
|||||||
|
|
||||||
//overlay elements
|
//overlay elements
|
||||||
LoadComponentAsync(direct = new DirectOverlay { Depth = -1 }, mainContent.Add);
|
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(chat = new ChatOverlay { Depth = -1 }, mainContent.Add);
|
||||||
LoadComponentAsync(settings = new SettingsOverlay { Depth = -1 }, overlayContent.Add);
|
LoadComponentAsync(settings = new SettingsOverlay { Depth = -1 }, overlayContent.Add);
|
||||||
LoadComponentAsync(musicController = new MusicController
|
LoadComponentAsync(musicController = new MusicController
|
||||||
@ -234,6 +237,9 @@ namespace osu.Game
|
|||||||
case Key.F8:
|
case Key.F8:
|
||||||
chat.ToggleVisibility();
|
chat.ToggleVisibility();
|
||||||
return true;
|
return true;
|
||||||
|
case Key.F9:
|
||||||
|
social.ToggleVisibility();
|
||||||
|
return true;
|
||||||
case Key.PageUp:
|
case Key.PageUp:
|
||||||
case Key.PageDown:
|
case Key.PageDown:
|
||||||
var swClock = (Clock as ThrottledFrameClock)?.Source as StopwatchClock;
|
var swClock = (Clock as ThrottledFrameClock)?.Source as StopwatchClock;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user