d3d_set_projection_ortho( 0, 0, 640, 480, 0 ); draw_sprite(background5, 0,0,0); draw_set_alpha(.5*(fadein/30)) draw_set_color(c_white) draw_roundrect(20,20,620,620,false) if fadein < 30 { fadein += 1 } draw_set_alpha(fadein/30) draw_set_color(c_black) draw_set_font(fn_main) draw_text(60,60,string_hash_to_newline("Options:")) draw_set_font(fn_menu) draw_text(150-fadein,120,string_hash_to_newline("Keyboard layout:")) switch global.keyconfig { case 0: draw_text(320-fadein,120,string_hash_to_newline("QWERTY")) break; case 1: draw_text(320-fadein,120,string_hash_to_newline("QWERTZ")) break; case 2: draw_text(320-fadein,120,string_hash_to_newline("AZERTY")) break; case 3: draw_text(320-fadein,120,string_hash_to_newline("Dvorak")) break; default: break; } draw_text(100+fadein,150,string_hash_to_newline("Toggle fullscreen")) draw_text(170-fadein,180,string_hash_to_newline("Defaults")) draw_text(120+fadein,210,string_hash_to_newline("Save and quit")) draw_set_alpha(1) draw_sprite(spr_menuselect,0,10*menuchoice + 100,30*menuchoice + 120) draw_set_color(c_white) draw_rectangle(-1,460,641,481,false) draw_set_color(c_black) draw_set_font(fn_helper) draw_text(10,465,string_hash_to_newline("Arrows: select menu item | Enter: Activate menu item | Esc: Back to main menu"))