<undefined> 0 -1 0 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 global.curropt = 0; repeat (3) { if (global.gallery[global.curropt] == 0) global.curropt += 1; } lastitem = 2; state = 1; active = 0; alarm[0] = 5; img_alpha = 0; img_fadeout = 0; bg_id = -4; op3 = instance_create(16, 216, oPauseOption); op3.optionid = 3; op3.label = get_text("GlobalOptions", "Exit"); 1 603 7 0 0 -1 2 self 0 0 1 active = 1; 1 603 7 0 0 -1 2 self 0 0 1 if (active) { if (state == 1) { if ((oControl.kRight > 0) && (oControl.kRightPushedSteps == 0)) { global.curropt += 1; if (global.curropt > lastitem) global.curropt = 0; repeat (3) { if (global.gallery[global.curropt] == 0) global.curropt += 1; if (global.curropt > lastitem) global.curropt = 0; } sfx_play(sndMenuMove); } if ((oControl.kLeft > 0) && (oControl.kLeftPushedSteps == 0)) { global.curropt -= 1; if (global.curropt < 0) global.curropt = lastitem; repeat (3) { if (global.gallery[global.curropt] == 0) global.curropt -= 1; if (global.curropt < 0) global.curropt = lastitem; } sfx_play(sndMenuMove); } if ((oControl.kDown > 0) && (oControl.kDownPushedSteps == 0)) { global.curropt = 3; sfx_play(sndMenuMove); } if ((oControl.kUp > 0) && (oControl.kUpPushedSteps == 0)) { global.curropt = 0; repeat (3) { if (global.gallery[global.curropt] == 0) global.curropt += 1; } sfx_play(sndMenuMove); } if (oControl.kMenu1 && (oControl.kMenu1PushedSteps == 0)) { sfx_play(sndMenuSel); if (global.curropt >= 0 && global.curropt <= lastitem) event_user(0); if (global.curropt == 3) { global.curropt = 5; room_goto(titleroom); } } } // if (state == 1) if (state == 2) { if (img_fadeout == 0) { if (img_alpha < 1) img_alpha += 0.05; } else if (img_alpha > 0) { img_alpha -= 0.05; } else { active = 0; alarm[0] = 5; state = 1; } if (oControl.kMenu1 && oControl.kMenu1PushedSteps == 0 && img_alpha == 1 && img_fadeout == 0) img_fadeout = 1; } } // if (active) 1 603 7 0 0 -1 2 self 0 0 1 if (global.curropt == 0) bg_id = 276; if (global.curropt == 1) bg_id = 277; if (global.curropt == 2) bg_id = 278; state = 2; img_alpha = 0; img_fadeout = 0; 1 603 7 0 0 -1 2 self 0 0 1 if (bg_id != -4) draw_background_ext(bg_id, -53, 0, 1, 1, 0, -1, img_alpha); // -53 is a widescreen fix 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 0