|
surge4883@yahoo.com Beginner
Joined: 30 Jul 2010 Posts: 19
|
Posted: Sat Sep 04, 2010 5:03 pm
%btncol |
I am having trouble with the btncol function. I have a button that I want to change colors when I enter a certain command.
#NOOP %btncol( @Wardstype, white, black)
The button's name is @Wardstype
The name of the button changes depending on what ward I have on, and I want to change the color when my ward drops.
When I try doing the btncol function, it changes the color of a different button. I don't understand what is wrong. How do you make btncol specify which button changes color? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Sat Sep 04, 2010 5:12 pm |
Give the button an ID and use the buttonID
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Sep 04, 2010 7:12 pm |
Buttons can have two different types of IDs, an automatic numeric one and a text one provided by the user. It is recommended that you use the text id, because the button number will change based on where it appears in the Settings Editor (basically).
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
surge4883@yahoo.com Beginner
Joined: 30 Jul 2010 Posts: 19
|
Posted: Mon Sep 06, 2010 9:03 pm |
ok I found in the advanced settings that I can set an ID
Now I have an alias that resets my ward inside it it currently says this
#NOOP %btncol( @wardstype, white, black)
where in there would I place a buttonID?
#NOOP %buttonID(wardbutton)%btncol( @Wardstype, white, black)
like that? |
|
|
|
surge4883@yahoo.com Beginner
Joined: 30 Jul 2010 Posts: 19
|
Posted: Mon Sep 06, 2010 9:11 pm |
nvm I was able to figure it out
thanks for the help |
|
|
|
|
|