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
shazara
Beginner


Joined: 17 Feb 2003
Posts: 16
Location: USA

PostPosted: Sun Mar 06, 2005 12:54 am   

Multi-State buttons displaying contents of a variable
 
I have a multi-state button, and I would like certain state captions to display the contents of a variable. The Main Caption does this automatically (so if @myvar=7, then the Main Caption state shows 7 on the button), but the captions of any other states displays "@variablename". How to fix this?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Mar 06, 2005 8:06 am   
 
In a multi-state button, the captions are fixed. To have variable captions for each state, you need to use a MENU-style button.

For that, set the button to MENU. In the part where the code goes, put the name of a class folder where you are keeping the menu options (to actually use them, make sure that folder has Submenu folder checked in its properties.) Then, you just create the menu options.
_________________
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