Post 6 made on Tuesday February 18, 2014 at 20:33 |
Faw Long Time Member |
Joined: Posts: | January 2008 14 |
|
|
In case anyone is interested on how to do it (toggle 3 items):
1.create 3 buttons, put them all in the same location. 2.make a boolean variable for each button and assign it one to each button (item1_togggle..item3_toggle) make them all true 3.set the image transparent for both normal/pressed states in 3 buttons 4.set text for normal state for each button (item 1, item 2,item 3), let text in pressed state empty 5. in the button you will use to toggle use this macro: VAR item1_toggle=true VAR item2_toggle=true VAR item3_toggle=true TOGGLE VAR item1_toggle=false VAR item2_toggle=false VAR item3_toggle=false
Is better to have them show when toggle is false because showing it when true looks ugly (topmost button always shows while pressed). I guess it could be done with ifs, but nested ifs are a mess, this seems more clean.
|
|
|