|
Luhta Beginner
Joined: 11 May 2003 Posts: 25 Location: USA
|
Posted: 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? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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) |
|
|
|
Luhta Beginner
Joined: 11 May 2003 Posts: 25 Location: USA
|
Posted: 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
|
|
|
|
Luhta Beginner
Joined: 11 May 2003 Posts: 25 Location: USA
|
Posted: 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 :)
|
|
|
|
|
|