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
darantares
Newbie


Joined: 14 Dec 2005
Posts: 6

PostPosted: Wed Dec 14, 2005 12:54 am   

ZMud Button Question
 
I figured out how to create a trigger to change a buttons color when a certain action is done, but is there any way to have ZMud be able to change the picture of a button? If I have one picture imported for my normal state, say, it's a picture of an arm, and if that arm breaks, a trigger goes off, and changes the picture from a normal arm, to a broken one, is that possible?
Reply with quote
CircuitConcepts
Newbie


Joined: 11 Dec 2005
Posts: 6

PostPosted: Wed Dec 14, 2005 12:57 am   
 
Yes there is! Read up on #NOOP, and %btnimage. NOOP sounds bizarre (it does nothing), but it's used so you can throw in the %functions (forgot what those are called, so let it slide Embarassed Razz ). When the button is up, the %btnimage uses this iamge, when it's down it does the other (so on each state of the button there must be a similar #NOOP setup, and the trigger just changes the state). It's how you do radio buttons that fill up etc.

#NOOP %btnimage(1,"protect.bmp")

That's the zmud example
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Dec 14, 2005 3:18 am   
 
#NOOP and #CALL are interchangeable, but #CALL is the proper way to do things like that.
_________________
EDIT: I didn't like my old signature
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