From 3df14521e88160a142f5a49f9bd22b6d8193dc12 Mon Sep 17 00:00:00 2001 From: Lasercar Date: Mon, 10 Feb 2025 20:48:56 +1000 Subject: [PATCH] no one was around to fix this bug --- source/funkin/ui/debug/stageeditor/StageEditorState.hx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/funkin/ui/debug/stageeditor/StageEditorState.hx b/source/funkin/ui/debug/stageeditor/StageEditorState.hx index a536a09ee5..b854f7c606 100644 --- a/source/funkin/ui/debug/stageeditor/StageEditorState.hx +++ b/source/funkin/ui/debug/stageeditor/StageEditorState.hx @@ -582,7 +582,7 @@ class StageEditorState extends UIState if (FlxG.keys.justPressed.DELETE) onMenuItemClick("delete object"); if (FlxG.keys.justPressed.ENTER) onMenuItemClick("test stage"); if (FlxG.keys.justPressed.ESCAPE) onMenuItemClick("exit"); - if (FlxG.keys.justPressed.F1) onMenuItemClick("user guide"); + if (FlxG.keys.justPressed.F1 && welcomeDialog == null && userGuideDialog == null) onMenuItemClick("user guide"); if (FlxG.keys.justPressed.T) { @@ -1269,6 +1269,10 @@ class StageEditorState extends UIState userGuideDialog = new UserGuideDialog(); userGuideDialog.showDialog(); + userGuideDialog.onDialogClosed = function(_) { + userGuideDialog = null; + } + case "open folder": #if sys var absoluteBackupsPath:String = haxe.io.Path.join([Sys.getCwd(), BACKUPS_PATH]);