Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Rexxon the Mighty
Newbie


Joined: 07 Apr 2005
Posts: 1

PostPosted: Thu Aug 18, 2005 5:40 pm   

Need help creating a button.
 
I'm trying to create a button that will be one of three colors:

1. Color one when I click on the button. (The Normal State).
2. Color two when my trigger for others being cursed activates (State 2).
3. Color three when my trigger for me being cursed activated (State 3).

I want to be able to press the button on any state to reset it back to state
one.

Can anyone help me create this?

Thank you for your time.
_________________
When the world needs a hero...
Rexxon the Mighty.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Thu Aug 18, 2005 9:40 pm   
 
The best method to do this is to use a variable to describe what 'state' you want the button to be in. You must set the button ID (in the Advanced tab) to something. You would then place the following, with proper modfications, somewhere in the button caption:
%if(%btncolor(SomeButtonID,%case(@SomeVariableName,red,blue,green),,)
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net