ludum-dare-22/objects/obj_settings/KeyPress_13.gml

31 lines
766 B
Plaintext

sound_play(snd_menuselect)
switch menuchoice
{
case 0: //layout
global.keyconfig += 1
if global.keyconfig = 4
global.keyconfig = 0
break;
case 1: //full
if global.fullscreen
global.fullscreen = false
else
global.fullscreen = true
window_set_fullscreen(global.fullscreen)
break;
case 2: //defaults
global.fullscreen = false
global.keyconfig = 1
window_set_fullscreen(global.fullscreen)
break;
case 3: //quit
ini_write_real("Settings","keyconfig",global.keyconfig)
ini_write_real("Settings","fullscreen",global.fullscreen)
window_set_fullscreen(global.fullscreen)
room_goto(rm_menu);
break;
default:
break;
}