From ff907a0f197fe6f877d648468993304525596cc1 Mon Sep 17 00:00:00 2001 From: WizardMantis441 <77557487+WizardMantis441@users.noreply.github.com> Date: Sun, 29 Jan 2023 20:43:19 -0600 Subject: [PATCH] temporary desktop exit --- buildnumber.txt | 2 +- source/funkin/desktop/DesktopMain.hx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/buildnumber.txt b/buildnumber.txt index a6ae6d78..41a1464b 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -2206 \ No newline at end of file +2207 \ No newline at end of file diff --git a/source/funkin/desktop/DesktopMain.hx b/source/funkin/desktop/DesktopMain.hx index f5ee4c85..6800f098 100644 --- a/source/funkin/desktop/DesktopMain.hx +++ b/source/funkin/desktop/DesktopMain.hx @@ -94,6 +94,9 @@ class DesktopMain extends MusicBeatState { windows.add(new Window(new EditorPlayState())); FlxG.sound.enableVolumeChanges = !(currentFocus is IDesktopInputObject); + + // TEMPORARY ESCAPE KEY UNTIL TASKBAR IS ADDED + if (FlxG.keys.justPressed.ESCAPE) FlxG.switchState(new funkin.menus.MainMenuState()); } public function openWindow(content:WindowContent) {