From b4b38e0592ce875c7a4969f3818a169dfd8f975d Mon Sep 17 00:00:00 2001 From: Beu Date: Mon, 28 Aug 2023 01:12:53 +0200 Subject: [PATCH] add F1 shortcut to open and close the UI --- TM_DebugMode.Script.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/TM_DebugMode.Script.txt b/TM_DebugMode.Script.txt index b26bca5..9b0da64 100644 --- a/TM_DebugMode.Script.txt +++ b/TM_DebugMode.Script.txt @@ -818,6 +818,12 @@ Text GetManialink() { } } } + case CMlScriptEvent::Type::KeyPress: { + if (Event.KeyCode == 38) { // F1 + Frame_MainUI.Visible = !Frame_MainUI.Visible; + P_DebugMode_Window_Open = Frame_MainUI.Visible; + } + } } }