add F1 shortcut to open and close the UI

This commit is contained in:
Beu 2023-08-28 01:12:53 +02:00
parent 10b8151df8
commit b4b38e0592

View File

@ -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;
}
}
}
}