Looking for the best looter for EasyUO? Look Here!
0 Members and 1 Guest are viewing this topic.
sub buttonlocationblah blahblah blahgosub menuButtonClicked x y w hreturn
sub menuButtonClicked;----------- menu Button {name} {x} {y} {width} {height} {text}if #menubutton = #false returnmenu delete button #menubutton if ! . #menubutton = #false { set ! . #menubutton #true menu font BGcolor red menu font color white menu Button #menubutton 120 105 30 23 #menubutton ;----- hmm location of each button ??? ;--menu Button #menubutton %1 %2 %3 %4 #menubutton ;--- maybe pass the location with gosub } else { set ! . #menubutton #false menu font BGcolor blue menu font color white menu Button #menubutton 120 105 30 23 #menubutton ;--menu Button #menubutton %1 %2 %3 %4 #menubutton ;--- maybe pass the location with gosub } set #menubutton #false } return
if #menubutton = thing{do stuff}else{do other stuff}100 times
if #menubutton <> #false gosub #menubuttonsub thingreturnsub thing2return100 times
loop:if #menubutton <> #false gosub #menubuttontogo loop:sub heal enter your actionreturnsub cure enter your actionreturn