76
Submit your Script / Re: Hitech's Master Control
« on: March 06, 2017, 10:45:55 PM »
Ic... I did get a parser working
Was good training
Nice to make progress
Was good training
Nice to make progress
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
;----------------------------------------
sub menuButtonAction
;--- menu Button {name} {x} {y} {width} {height} {text}
gosub sub_ , #menubutton
;display %1 %2 %3 %4 %5
menu 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 %x %y %w %h #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 %x %y %w %h #menubutton ;--- maybe pass the location with gosub
}
set #menubutton #false
}
return
;---------------------------
;--- menu Button {name} {x} {y} {width} {height} {text}
;------------------------------------------
sub sub_EV
set %x 15
set %y 45
set %w 40
set %h 23
set %t ev
return 15 45 40 23 EV
sub buttonlocation
blah blah
blah blah
gosub menuButtonClicked x y w h
return
sub menuButtonClicked
;----------- menu Button {name} {x} {y} {width} {height} {text}
if #menubutton = #false
return
menu 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