Add to game and bind with configuration setting

This commit is contained in:
Dean Herbert
2022-07-20 20:49:57 +09:00
parent 0fb959a565
commit 0a1744faca
3 changed files with 21 additions and 17 deletions

View File

@ -814,6 +814,13 @@ namespace osu.Game
ScreenStack.ScreenPushed += screenPushed;
ScreenStack.ScreenExited += screenExited;
loadComponentSingleFile(new FPSCounter
{
Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight,
Margin = new MarginPadding(10),
}, topMostOverlayContent.Add);
if (!args?.Any(a => a == @"--no-version-overlay") ?? true)
loadComponentSingleFile(versionManager = new VersionManager { Depth = int.MinValue }, ScreenContainer.Add);