2023-06-03 01:02:35 -07:00
|
|
|
menu_wait--;
|
2023-06-06 23:53:55 -07:00
|
|
|
save_display--;
|
2023-06-03 01:02:35 -07:00
|
|
|
|
2023-06-06 23:53:55 -07:00
|
|
|
if menu_wait <= 0 {
|
|
|
|
save_allowed = true;
|
|
|
|
unpause_allowed = true;
|
|
|
|
escape_allowed = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (keyboard_check_pressed(ord("S")) && save_allowed == true) {
|
|
|
|
save_check = true;
|
|
|
|
save_allowed = false;
|
|
|
|
menu_wait = MENU_DELAY;
|
|
|
|
}
|
2023-06-03 01:02:35 -07:00
|
|
|
|
2023-06-06 23:53:55 -07:00
|
|
|
if (save_check == true) {
|
|
|
|
scr_files_save( global.load_file_name );
|
|
|
|
save_check = false;
|
|
|
|
save_display = MENU_DELAY;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (keyboard_check_pressed(ord("P")) && unpause_allowed == true) {
|
2023-06-03 01:02:35 -07:00
|
|
|
menu_wait = MENU_DELAY;
|
|
|
|
pause = !pause;
|
|
|
|
if (!pause) {
|
|
|
|
instance_activate_all();
|
|
|
|
surface_free(paused_surface);
|
|
|
|
paused_surface = -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (pause) {
|
|
|
|
//put things here to prevent alarms from counting down
|
2023-06-06 23:53:55 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
if (keyboard_check_pressed(vk_escape) && escape_allowed == true) {
|
|
|
|
menu_wait = MENU_DELAY;
|
|
|
|
pause = !pause;
|
|
|
|
if (!pause) {
|
|
|
|
instance_activate_all();
|
|
|
|
surface_free(paused_surface);
|
|
|
|
paused_surface = -1;
|
|
|
|
}
|
|
|
|
room_goto(rm_title);
|
2023-06-03 01:02:35 -07:00
|
|
|
}
|