<undefined> 0 -1 0 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 mus_stop_muted(); global.curropt = 0; lastitem = 3; active = 0; alarm[0] = 5; alarm[2] = 60; i = 0; repeat (4) { global.canedit[i] = 1; i += 1; } timer = 0; changedfx = 0; event_user(0); tip[0] = get_text("OptionsSound", "SoundVolume_Tip"); tip[1] = get_text("OptionsSound", "MusicVolume_Tip"); tip[2] = get_text("ExtrasMenu", "LowHealthAlarm_Tip"); tip[3] = get_text("GlobalOptions", "ExitMain_Tip"); global.tiptext = tip[global.curropt]; 1 603 7 0 0 -1 2 self 0 0 1 event_user(1); event_user(3); 1 603 7 0 0 -1 2 self 0 0 1 if (oMusicV2.bossbgm == sndJump && !sfx_isplaying(oMusicV2.currentbgm) && oMusicV2.currentbgm != sndJump) mus_play(oMusicV2.currentbgm); if (oMusicV2.bossbgm != sndJump && !sfx_isplaying(oMusicV2.bossbgm)) mus_play(oMusicV2.bossbgm); alarm[2] = 30; 1 603 7 0 0 -1 2 self 0 0 1 sfx_play(sndFireBeam); 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 (oControl.kDown > 0 && (oControl.kDownPushedSteps == 0 || oControl.kDownPushedSteps > 30 && timer == 0)) { global.curropt += 1; if (global.curropt > lastitem) global.curropt = 0; sfx_play(sndMenuMove); global.tiptext = tip[global.curropt]; } if (oControl.kUp > 0 && (oControl.kUpPushedSteps == 0 || oControl.kUpPushedSteps > 30 && timer == 0)) { global.curropt -= 1; if (global.curropt < 0) global.curropt = lastitem; sfx_play(sndMenuMove); global.tiptext = tip[global.curropt]; } if ((oControl.kLeft > 0 && oControl.kLeftPushedSteps == 0 || oControl.kRight > 0 && oControl.kRightPushedSteps == 0) && oControl.kDown == 0 && oControl.kUp == 0) { if (global.curropt == 2) { oControl.mod_lowhealthwarning = !oControl.mod_lowhealthwarning; sfx_play(sndMenuMove); event_user(2); } } if (oControl.kLeft > 0 && oControl.kLeftPushedSteps > 5 && oControl.kDown == 0 && oControl.kUp == 0) { if (global.curropt == 0 && global.opsoundvolume > 0) { global.opsoundvolume -= 1; alarm[1] = 30; event_user(2); } if (global.curropt == 1 && global.opmusicvolume > 0) { global.opmusicvolume -= 1; mus_current_update_volume(); event_user(2); } } if (oControl.kRight > 0 && oControl.kRightPushedSteps > 5 && oControl.kDown == 0 && oControl.kUp == 0) { if (global.curropt == 0 && global.opsoundvolume < 100) { global.opsoundvolume += 1; alarm[1] = 30; event_user(2); } if (global.curropt == 1 && global.opmusicvolume < 100) { global.opmusicvolume += 1; mus_current_update_volume(); event_user(2); } } if (oControl.kMenu1 && oControl.kMenu1PushedSteps == 0) { if (global.curropt == 3) { save_gameoptions(); instance_create(50, 92, oOptionsMain); instance_destroy(); sfx_play(sndMenuSel); } } } // if (active) timer -= 1; if (timer < 0) timer = 8; 1 603 7 0 0 -1 2 self 0 0 1 1 603 7 0 0 -1 2 self 0 0 1 op[1].slwidth = global.opsoundvolume / 100 * op[1].w; op[2].slwidth = global.opmusicvolume / 100 * op[1].w; if (oControl.mod_lowhealthwarning) { op[3].optext = get_text("GlobalOptions", "Enabled"); } else op[3].optext = get_text("GlobalOptions", "Disabled"); 1 603 7 0 0 -1 2 self 0 0 1 with (op[0]) instance_destroy(); with (op[1]) instance_destroy(); with (op[2]) instance_destroy(); with (op[3]) instance_destroy(); with (op[4]) instance_destroy(); 1 603 7 0 0 -1 2 self 0 0 1 y -= 8; op[0] = instance_create(x, y, oMenuLabel); op[0].text = get_text("OptionsSound", "Title_Sound"); op[1] = instance_create(x, y + 16, oOptionSlider); op[1].label = get_text("OptionsSound", "SoundVolume"); op[1].optionid = 0; op[2] = instance_create(x, y + 32, oOptionSlider); op[2].label = get_text("OptionsSound", "MusicVolume"); op[2].optionid = 1; op[3] = instance_create(x, y + 48, oOptionLR); op[3].label = get_text("ExtrasMenu", "LowHealthAlarm"); op[3].optionid = 2; op[4] = instance_create(x, y + 64, oPauseOption); op[4].optionid = 3; op[4].label = get_text("GlobalOptions", "Exit"); event_user(2); 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 0