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
Luhta
Beginner


Joined: 11 May 2003
Posts: 25
Location: USA

PostPosted: Fri Dec 12, 2003 7:37 pm   

button manipulation
 
Is it possible to change the state of a button, specifically I'm trying to create a set of buttons which have a green background when I am affected by a specific spell effect and gray when I'm not.

I've chosen toggles to work with since that may simply be a matter of changing the state of the buttons, but I'm at a loss as to how to do that.

Anyone have any ideas?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Dec 12, 2003 8:06 pm   
 
Yes.

Idea 1
Use the Settings Editor. Set the colors for each state as you desire on the Button States tab. Assign a Value (such as, "@spelleffect" = "on") to control the button on the Advanced tab.

Idea 2
Use the Settings Editor. Assign an ID (a name, such as Spell1) to the button on the Advanced tab. Use the %btncol function to change the color.
#CALL %btncol(Spell1, green)
Reply with quote
Luhta
Beginner


Joined: 11 May 2003
Posts: 25
Location: USA

PostPosted: Fri Dec 12, 2003 8:09 pm   
 
I should probably mention that I'd prefer not to use class folders if I can avoid it, the last thing I want is to get into a bunch of pixel pushing whenever I add a new spell effect
Reply with quote
Luhta
Beginner


Joined: 11 May 2003
Posts: 25
Location: USA

PostPosted: Fri Dec 12, 2003 8:10 pm   
 
Ahh those are great ideas, I think I'm going to go with option 1, thanks for the help :)
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