11// /@desc Menu Switch
22if (_menu==0 ){
3+ _mode=file_exists (Flag_GetSavePath (FLAG_TYPE.INFO ));
34 if (_mode==0 ){
45 _inst_instruction=instance_create_depth (170 ,40 ,0 ,text_typer);
56 _inst_instruction.text =_prefix+" {color_text `gray_light`} --- Instruction ---{space_y -1}&&{space_y 2}[Z or ENTER] - Confirm&[X or SHIFT] - Cancel&[C or CTRL] - Menu (In-game)&[F4] - Fullscreen&[Hold ESC] - Quit&When HP is 0, you lose." ;
@@ -11,6 +12,30 @@ if(_menu==0){
1112 event_user (15 );
1213 }
1314 event_user (2 );
15+ }else {
16+ Flag_Load (FLAG_TYPE.INFO );
17+ _inst_name=instance_create_depth (140 ,124 ,0 ,text_typer);
18+ _inst_name.text =_prefix+Flag_Get (FLAG_TYPE.INFO ,FLAG_INFO.NAME ,Lang_GetString (" ui.save.name.empty" ));
19+ _inst_lv=instance_create_depth (308 ,124 ,0 ,text_typer);
20+ _inst_lv.text =_prefix+" LV " +string (Flag_Get (FLAG_TYPE.INFO ,FLAG_INFO.LV ));
21+ _inst_time=instance_create_depth (452 ,124 ,0 ,text_typer);
22+ var time=Flag_Get (FLAG_TYPE.INFO ,FLAG_INFO.TIME );
23+ var minute=time div 60 ;
24+ var second=time mod 60 ;
25+ _inst_time.text =_prefix+string (minute)+" :" +(second<10 ? " 0" : " " )+string (second);
26+ _inst_room=instance_create_depth (140 ,160 ,0 ,text_typer);
27+ _inst_room.text =_prefix+Player_GetRoomName (Flag_Get (FLAG_TYPE.INFO ,FLAG_INFO.ROOM ));
28+ _inst_continue=instance_create_depth (170 ,210 ,0 ,text_typer);
29+ _inst_continue.text =_prefix+Lang_GetString (" menu.continue" );
30+ _inst_continue.override_color_text_enabled =true ;
31+ _inst_reset=instance_create_depth (390 ,210 ,0 ,text_typer);
32+ _inst_reset.text =_prefix+Lang_GetString (" menu.reset" );
33+ _inst_reset.override_color_text_enabled =true ;
34+ _inst_settings=instance_create_depth (264 ,250 ,0 ,text_typer);
35+ _inst_settings.text =_prefix+Lang_GetString (" menu.settings" );
36+ _inst_settings.override_color_text_enabled =true ;
37+ event_user (2 );
38+
1439 }
1540}else {
1641 if (instance_exists (_inst_instruction)){
@@ -22,26 +47,23 @@ if(_menu==0){
2247 if (instance_exists (_inst_settings)){
2348 instance_destroy (_inst_settings);
2449 }
25- if (instance_exists (_inst_save_name)){
26- instance_destroy (_inst_save_name);
27- }
28- if (instance_exists (_inst_save_lv)){
29- instance_destroy (_inst_save_lv);
50+ if (instance_exists (_inst_name)){
51+ instance_destroy (_inst_name);
3052 }
31- if (instance_exists (_inst_save_time )){
32- instance_destroy (_inst_save_time );
53+ if (instance_exists (_inst_lv )){
54+ instance_destroy (_inst_lv );
3355 }
34- if (instance_exists (_inst_save_room )){
35- instance_destroy (_inst_save_room );
56+ if (instance_exists (_inst_time )){
57+ instance_destroy (_inst_time );
3658 }
37- if (instance_exists (_inst_save_continue )){
38- instance_destroy (_inst_save_continue );
59+ if (instance_exists (_inst_room )){
60+ instance_destroy (_inst_room );
3961 }
40- if (instance_exists (_inst_save_reset )){
41- instance_destroy (_inst_save_reset );
62+ if (instance_exists (_inst_continue )){
63+ instance_destroy (_inst_continue );
4264 }
43- if (instance_exists (_inst_save_settings )){
44- instance_destroy (_inst_save_settings );
65+ if (instance_exists (_inst_reset )){
66+ instance_destroy (_inst_reset );
4567 }
4668}
4769
0 commit comments