<undefined>
0
-1
0
0
<undefined>
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
global.curropt = 0;
lastitem = 4;
active = 0;
alarm[0] = 5;
event_user(0);
with (oSS_Fg) op_text1 = get_text("OptionsMain", "Title");
tip[0] = get_text("OptionsMain", "Display_Tip");
tip[1] = get_text("OptionsMain", "Sound_Tip");
tip[2] = get_text("OptionsMain", "Control_Tip");
tip[3] = get_text("ExtrasMenu", "Extras_Tip");
tip[4] = get_text("GlobalOptions", "Exit_Tip");
global.tiptext = tip[global.curropt];
1
603
7
0
0
-1
2
self
0
0
1
event_user(1);
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 && oControl.kDownPushedSteps == 0) {
global.curropt += 1;
if (global.curropt > lastitem) global.curropt = 0;
if (global.curropt == 3 && op4.enabled == 0) global.curropt += 1;
sfx_play(sndMenuMove);
global.tiptext = tip[global.curropt];
}
if (oControl.kUp && oControl.kUpPushedSteps == 0) {
global.curropt -= 1;
if (global.curropt < 0) global.curropt = lastitem;
while (global.curropt == 3 && op4.enabled == 0) global.curropt -= 1;
sfx_play(sndMenuMove);
global.tiptext = tip[global.curropt];
}
if (oControl.kMenu1 && oControl.kMenu1PushedSteps == 0) {
sfx_play(sndMenuSel);
if (global.curropt == 0) {
instance_create(50, 92, oOptionsDisplay);
instance_destroy();
}
if (global.curropt == 1) {
instance_create(50, 92, oOptionsSound);
instance_destroy();
}
if (global.curropt == 2) {
instance_create(50, 92, oOptionsControl);
instance_destroy();
}
if (global.curropt == 3) {
instance_create(50, 92 - 8, oOptionsExtras);
instance_destroy();
}
if (global.curropt == 4) {
if (instance_exists(oSS_Control) > false) {
instance_create(50, 92, oPauseMenuOptions);
instance_destroy();
} else {
save_gameoptions();
global.curropt = 4; // used to be 3, menu shifted
room_change(titleroom, 0); //room_goto(titleroom);
}
}
} // if (oControl.kMenu1 && oControl.kMenu1PushedSteps == 0)
} // if (active)
1
603
7
0
0
-1
2
self
0
0
1
if (instance_exists(op1)) with (op1) instance_destroy();
if (instance_exists(op2)) with (op2) instance_destroy();
if (instance_exists(op3)) with (op3) instance_destroy();
if (instance_exists(op4)) with (op4) instance_destroy();
if (instance_exists(op5)) with (op5) instance_destroy();
1
603
7
0
0
-1
2
self
0
0
1
y -= 8;
op1 = instance_create(x, y, oPauseOption);
op1.optionid = 0;
op1.label = get_text("OptionsMain", "Display");
op2 = instance_create(x, y + 16, oPauseOption);
op2.optionid = 1;
op2.label = get_text("OptionsMain", "Sound");
op3 = instance_create(x, y + 32, oPauseOption);
op3.optionid = 2;
op3.label = get_text("OptionsMain", "Control");
op4 = instance_create(x, y + 48, oPauseOption);
op4.optionid = 3;
op4.label = get_text("ExtrasMenu", "Extras");
/*if (instance_exists(oSS_Control) > false) {
op4.enabled = 0;
}*/
op5 = instance_create(x, y + 64, oPauseOption);
op5.optionid = 4;
op5.label = get_text("GlobalOptions", "Exit");
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
0