Add rankings overlay to the game

This commit is contained in:
Andrei Zavatski
2020-02-13 13:39:33 +03:00
parent e022352812
commit a677aa6cfc
3 changed files with 27 additions and 1 deletions

View File

@ -65,6 +65,8 @@ namespace osu.Game
private DirectOverlay direct;
private RankingsOverlay rankings;
private SocialOverlay social;
private UserProfileOverlay userProfile;
@ -600,6 +602,7 @@ namespace osu.Game
//overlay elements
loadComponentSingleFile(direct = new DirectOverlay(), overlayContent.Add, true);
loadComponentSingleFile(social = new SocialOverlay(), overlayContent.Add, true);
loadComponentSingleFile(rankings = new RankingsOverlay(), overlayContent.Add, true);
loadComponentSingleFile(channelManager = new ChannelManager(), AddInternal, true);
loadComponentSingleFile(chatOverlay = new ChatOverlay(), overlayContent.Add, true);
loadComponentSingleFile(Settings = new SettingsOverlay { GetToolbarHeight = () => ToolbarOffset }, leftFloatingOverlayContent.Add, true);
@ -643,7 +646,7 @@ namespace osu.Game
}
// eventually informational overlays should be displayed in a stack, but for now let's only allow one to stay open at a time.
var informationalOverlays = new OverlayContainer[] { beatmapSetOverlay, userProfile };
var informationalOverlays = new OverlayContainer[] { beatmapSetOverlay, userProfile, rankings };
foreach (var overlay in informationalOverlays)
{