On my current project, once you start it up there is a small menu asking to select a display mode/size. Now, the menu itself has only a small handful of display modes hard coded into it, how exaclty would i use the
PERFORM CHECKLIST FOR DISPLAY MODES to create a menu that i could then Click to select one?
My current menu is like this:-
Global Text_size
Global Menu_Choice
Global Click_e
Text_size = Int(screen Height()/25)
set text size M_Text_size
Menu()
Function Menu()
Show Mouse
DO
Set Cursor 0,0
Menu_Choice = MenuText("1280 x 800",1,1)
Menu_choice = MenuText("1280 x 800 Windowed",3,2)
Menu_Choice = MenuText("1280 x 1024",5,3)
Menu_Choice = MenuText("1280 x 1024 Windowed",7,4)
Menu_Choice = MenuText("1366 x 768",9,5)
Menu_Choice = MenuText("1366 x 768 Windowed",11,6)
Menu_Choice = MenuText("1440 x 900",13,7)
Menu_Choice = MenuText("1440 x 900 Windowed",15,8)
Menu_Choice = MenuText("1600 x 1000",17,9)
Menu_choice = MenuText("1600 x 1000 Windowed",19,10)
Menu_Choice = MenuText("1680 x 1050",21,11)
Menu_Choice = MenuText("1680 x 1050 Windowed",23,12)
sync
loop
endfunction
Function MenuText(Text_$,Line_,Option_)
if int(mousey()/Text_size)= Line_ and Option_ > 0
ink rgb(255,255,0),rgb(0,0,0)
If mouseclick() = 1
Click_e = Option_
else
Click_e = 0
endif
else
ink rgb(255,255,255),rgb(0,0,0)
endif
Center text screen width()/2,Int(Line_*Text_Size),Text_$
if click_e= 1 then set display mode 1280,800,32 : set window off
if click_e= 2 then set display mode 1280,800,32 : Set Window Position 0,0
if click_e= 3 then set display mode 1280,1024,32 : set window off
if click_e= 4 then set display mode 1280,1024,32 : Set Window Position 0,0
if click_e= 5 then set display mode 1366,768,32 : set window off
if click_e= 6 then set display mode 1366,768,32 : Set Window Position 0,0
if click_e= 7 then set display mode 1440,900,32 : set window off
if click_e= 8 then set display mode 1440,900,32 : Set Window Position 0,0
if click_e= 9 then set display mode 1600,1000,32 : set window off
if click_e= 10 then set display mode 1600,1000,32 : Set Window Position 0,0
if click_e= 11 then set display mode 1680,1050,32 : set window off
if click_e= 12 then set display mode 1680,1050,32 : Set Window Position 0,0
endfunction Click_e
It is based on a bit of code i discovered on the forums, i like how it works but i don;t know how i would implement the
PERFORM CHECKLIST FOR DISPLAY MODES
I can see from your smile, you're not here for the sunset
Windows 7 64 bit, AMD Phenom II x4 Black edition, 4 GB Ram, Radeon HD 4650, 540 GB HDD