|
saplingg Novice
Joined: 06 Oct 2005 Posts: 31
|
Posted: Wed Dec 21, 2005 8:52 am
another button question |
I want to make a button that has a image that changes image when a trigger is activated. Meaning, for example right now the trigger is off, but something sets the trigger to on.
I want the button image to change from a black dot to a green dot, and then I want to be able to push the button to deactivate the trigger, thus setting the green dot to a black dot. I don't want a toggle button, pretty much just a push button that changes depending on whether another trigger is active or not.
Is this possible? |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Wed Dec 21, 2005 9:37 am |
Yes it is possible. First you have to make yourself the dots in a graphics editor program and save them as BMP in the zMud directory. Next you have to edit the trigger so it has an ID, or if it already has one remember it for later use. Next create your button so it also has an ID, now the script for the button would be something like:
#IF (%trigger(triggerID)) {#T- triggerID;#CALL %btnimage(btnID,"greenDot.bmp")} {#T+ triggerID;#CALL %btnimage(btnID,"blackDot.bmp")}
Finally anything else that turns the trigger on or off should also adjust the button image accordingly. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|