mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 06:33:20 +08:00
Merge pull request #3521 from smoogipoo/fix-screenshot-cursor
Fix cursor not hiding in screenshots
This commit is contained in:
commit
62a51a9ff1
@ -65,7 +65,8 @@ namespace osu.Game
|
|||||||
|
|
||||||
private BeatmapSetOverlay beatmapSetOverlay;
|
private BeatmapSetOverlay beatmapSetOverlay;
|
||||||
|
|
||||||
private ScreenshotManager screenshotManager;
|
[Cached]
|
||||||
|
private readonly ScreenshotManager screenshotManager = new ScreenshotManager();
|
||||||
|
|
||||||
protected RavenLogger RavenLogger;
|
protected RavenLogger RavenLogger;
|
||||||
|
|
||||||
@ -289,9 +290,6 @@ namespace osu.Game
|
|||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
// this needs to be cached before base.LoadComplete as it is used by MenuCursorContainer.
|
|
||||||
dependencies.Cache(screenshotManager = new ScreenshotManager());
|
|
||||||
|
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
|
||||||
// The next time this is updated is in UpdateAfterChildren, which occurs too late and results
|
// The next time this is updated is in UpdateAfterChildren, which occurs too late and results
|
||||||
|
Loading…
Reference in New Issue
Block a user