| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
if (global.down_keyp) |
| 4 |
{ |
| 5 |
if (position < position_max) |
| 6 |
position += 1; |
| 7 |
else |
| 8 |
position = 0; |
| 9 |
audio_play_sound(snd_mainmenu_select, 1, 0); |
| 10 |
} |
| 11 |
if (global.up_keyp) |
| 12 |
{ |
| 13 |
if (position > 0) |
| 14 |
position -= 1; |
| 15 |
else |
| 16 |
position = position_max; |
| 17 |
audio_play_sound(snd_mainmenu_select, 1, 0); |
| 18 |
} |
| 19 |
if (keyboard_multicheck_pressed(0)) |
| 20 |
{ |
| 21 |
audio_play_sound(snd_confirm, 1, 0); |
| 22 |
switch (position) |
| 23 |
{ |
| 24 |
case 0: |
| 25 |
if (!file_exists("Save.sav")) |
| 26 |
room_goto(rm_mmfirst Main menu when there is no save); |
| 27 |
else |
| 28 |
room_goto(rm_mainmenu Main menu); |
| 29 |
audio_stop_sound(mus_menu_options); |
| 30 |
scr_savecontrolsscr_savecontrolsfunction scr_savecontrols()
{
if (file_exists("Controls.sav"))
file_delete("Controls.sav");
ini_open("Controls.sav");
ini_write_real("Controls", "Z", global.button1);
ini_write_real("Controls", "X", global.button2);
ini_write_real("Controls", "C", global.button3);
ini_write_real("Controls", "deadzone", global.gamepad_deadzone);
if (variable_global_exists("buttonText1") && !is_undefined(global.buttonText1))
{
ini_write_string("ControlsNameIgnore", "Z", global.buttonText1);
ini_write_string("ControlsNameIgnore", "X", global.buttonText2);
ini_write_string("ControlsNameIgnore", "C", global.buttonText3);
}
ini_write_real("Controls", "autorun", global.option_autorun);
ini_write_real("Controls", "autoshoot", global.option_autoshoot);
ini_write_real("Controls", "autorhythm", global.option_autorhythm);
ini_write_real("Controls", "screenshake", global.option_screenshake_toggle);
ini_write_real("Controls", "retry", global.option_retry_toggle);
ini_write_real("Controls", "easymode", global.option_easymode);
ini_close();
} (); |
| 31 |
break; |
| 32 |
case 1: |
| 33 |
room_goto(rm_joystickconfig Joystick Config screen); |
| 34 |
break; |
| 35 |
case 2: |
| 36 |
if (global.option_screenshake_toggle == true) |
| 37 |
global.option_screenshake_toggle = false; |
| 38 |
else |
| 39 |
global.option_screenshake_toggle = true; |
| 40 |
break; |
| 41 |
case 3: |
| 42 |
if (global.option_retry_toggle == true) |
| 43 |
global.option_retry_toggle = false; |
| 44 |
else |
| 45 |
global.option_retry_toggle = true; |
| 46 |
break; |
| 47 |
case 4: |
| 48 |
if (global.option_autorun == true) |
| 49 |
global.option_autorun = false; |
| 50 |
else |
| 51 |
global.option_autorun = true; |
| 52 |
break; |
| 53 |
case 5: |
| 54 |
if (global.option_autoshoot == true) |
| 55 |
global.option_autoshoot = false; |
| 56 |
else |
| 57 |
global.option_autoshoot = true; |
| 58 |
break; |
| 59 |
case 6: |
| 60 |
if (global.option_autorhythm == true) |
| 61 |
global.option_autorhythm = false; |
| 62 |
else |
| 63 |
global.option_autorhythm = true; |
| 64 |
break; |
| 65 |
case 7: |
| 66 |
if (global.option_easymode == true) |
| 67 |
global.option_easymode = false; |
| 68 |
else |
| 69 |
global.option_easymode = true; |
| 70 |
break; |
| 71 |
} |
| 72 |
} |