From 926f67d4cd48bea7930d2c5dfa405dbc71738b40 Mon Sep 17 00:00:00 2001 From: lunarcleint <88809950+lunarcleint@users.noreply.github.com> Date: Tue, 3 Oct 2023 19:16:21 -0700 Subject: [PATCH] added F2 for alloc console shortcut --- source/funkin/backend/scripting/GlobalScript.hx | 2 ++ source/funkin/editors/charter/Charter.hx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/funkin/backend/scripting/GlobalScript.hx b/source/funkin/backend/scripting/GlobalScript.hx index 14803c8b..d6d10000 100644 --- a/source/funkin/backend/scripting/GlobalScript.hx +++ b/source/funkin/backend/scripting/GlobalScript.hx @@ -56,6 +56,8 @@ class GlobalScript { Logs.trace('Global script successfully loaded.', WARNING, GREEN); } } + if (FlxG.keys.justPressed.F2) + NativeAPI.allocConsole(); }); FlxG.signals.preDraw.add(function() { call("preDraw"); diff --git a/source/funkin/editors/charter/Charter.hx b/source/funkin/editors/charter/Charter.hx index 0461c873..6157d353 100644 --- a/source/funkin/editors/charter/Charter.hx +++ b/source/funkin/editors/charter/Charter.hx @@ -1026,7 +1026,7 @@ class Charter extends UIState { } } selection = sObjects; - _edit_copy(_); + _edit_copy(_); // to fix stupid bugs undos.addToUndo(CCreateSelection(sObjects.copy())); }