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
1 changed files with 6 additions and 0 deletions

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