mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 17:52:56 +08:00
BDL cache screenshot manager
This commit is contained in:
parent
0235eba9de
commit
cd594ce12b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user