Re: Hide object/Show Object - Same button?
What you want is a toggle. Set a variable to true or false each time the button is clicked. (If it's true, set it to false, otherwise set it to true.)
Like so:
IF (%foo%)
// turn it off
%foo% = 0
ELSE
// turn it on
%foo% = 1
END IF
Then, add in the stuff to do the showing and hiding, depending on whether it's being toggled on or off.
Announcement
Collapse
No announcement yet.
Hide object/Show Object - Same button?
Collapse
X
Leave a comment: