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
Takilara
Apprentice


Joined: 31 Jan 2002
Posts: 129
Location: Norway

PostPosted: Tue Oct 15, 2002 9:01 am   

Buttons with gauges
 
I was wondering if there is a way to change the colors on a gauge "runtime" without having to destroy the button then creating a new one?
Ive managed to change the label runtime, but it wont seem to accept any changes to the colors if i redefine a button.
I know i can do it by having two buttons, in seperate classes then turning one off and the other on, but since i want a lot of gauges this is not a good solution, also i know i can "unbutton" the button then creating a new one by code, however this is not a good solution for me either.
i use v6.26a (i found this is the version that works best for me...)

Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Oct 15, 2002 12:49 pm   
 
You should be able to do it by using the #BUTTON command to re-define the button, but I think that there is a bug that prevents this.

Kjata
Reply with quote
Takilara
Apprentice


Joined: 31 Jan 2002
Posts: 129
Location: Norway

PostPosted: Tue Oct 15, 2002 12:51 pm   
 
heh, thats what i figured out,, if i "redefined" the button with the #BUTTON cmd i managed to change the button label, however i could not change the colors or any of the other parameters (not that i could notice anyways)

Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Oct 15, 2002 1:16 pm   
 
Oops, that should have been the #GAUGE command. But I believe it is bugged the same.

Kjata
Reply with quote
AzCowboy
Adept


Joined: 09 Nov 2000
Posts: 222
Location: USA

PostPosted: Wed Oct 16, 2002 12:05 am   
 
Umm... I'm using #guage to change the colors of my guages with no problems...

I use it to keep track of if my HP and endurance are going up, down, or staying the same since the last time I received a prompt...

When I get home, I'll try to get the exact syntax that I'm using, and post it for you....

AzCowboy
Reply with quote
AzCowboy
Adept


Joined: 09 Nov 2000
Posts: 222
Location: USA

PostPosted: Wed Oct 16, 2002 2:00 am   
 
Oh, duh... I'm not using #GUAGE to change the guage, I'm using the %btncol() function...

Note: I'm running 6.35 BETA of Lucero, not sure if this works in 6.26, but I think it does...

Anyway I give the guage a name, then use:

#NOOP %btncol( end, red)

to make it red, and:

#NOOP %btncol( end, 32784)

to make it blue...
Reply with quote
Takilara
Apprentice


Joined: 31 Jan 2002
Posts: 129
Location: Norway

PostPosted: Wed Oct 16, 2002 7:43 am   
 
it works like a charm :) thanks :)

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