|
Ghedemonas Novice
Joined: 15 Aug 2007 Posts: 39
|
Posted: Fri Jun 06, 2008 7:01 pm
[2.26] %btncol() ID not working |
Only Priority number seems to be working for me (confirmed with other buttons):
Not Working:
#if (%ismember("n",@Mapper.Compassdir)) {#say yes;#noop %btncol(ButtonCompassN,black,green)} {#say no;#noop %btncol(ButtonCompassN,black,grey)}
Working:
#if (%ismember("n",@Mapper.Compassdir)) {#say yes;#noop %btncol(900000,black,green)} {#say no;#noop %btncol(900000,black,grey)} |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Jun 09, 2008 5:07 pm |
I cannot reproduce this at all. Here is what I just tried:
1) Open CMUD, close the Sessions window
2) Type:
#BUTTON 1 {Test} {Test}
to create a new button
3) right-click on the new Test button to open the settings editor.
4) Click on the Options tab and put "mybtn" in the ID field (without the quotes)
5) Back on the command line, type
#CALL %btncol(mybtn,blue)
notice that it properly changes the color of the button.
So, first, try changing your #NOOP commands to #CALL command. The way you are using #NOOP is left over from old versions of zMUD and should not be used like that anymore. Next, check to make sure your button ID values are still set properly. |
|
|
|
Ghedemonas Novice
Joined: 15 Aug 2007 Posts: 39
|
Posted: Fri Jun 20, 2008 11:39 pm |
#noop was indeed a leftover from the Zmud days ... #call did the trick!
Thanks! |
|
|
|
|
|
|
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
|
|