1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 06:42:56 +08:00

BDL cache screenshot manager

This commit is contained in:
smoogipoo 2018-04-13 20:46:01 +09:00
parent 0235eba9de
commit cd594ce12b

View File

@ -56,6 +56,8 @@ namespace osu.Game
private BeatmapSetOverlay beatmapSetOverlay;
private ScreenshotManager screenshotManager;
public virtual Storage GetStorageForStableInstall() => null;
private Intro intro
@ -125,6 +127,7 @@ namespace osu.Game
}
dependencies.CacheAs(this);
dependencies.Cache(screenshotManager = new ScreenshotManager());
// bind config int to database RulesetInfo
configRuleset = LocalConfig.GetBindable<int>(OsuSetting.Ruleset);
@ -239,7 +242,8 @@ namespace osu.Game
loadComponentSingleFile(volume = new VolumeOverlay(), overlayContent.Add);
loadComponentSingleFile(onscreenDisplay = new OnScreenDisplay(), Add);
loadComponentSingleFile(new ScreenshotManager(CursorOverrideContainer.MenuCursor), Add);
loadComponentSingleFile(screenshotManager, Add);
//overlay elements
loadComponentSingleFile(direct = new DirectOverlay { Depth = -1 }, mainContent.Add);