Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
DefinNormal
Beginner


Joined: 24 May 2012
Posts: 12
Location: United States

PostPosted: Mon Oct 14, 2013 8:40 pm   

Using #BUTTON options to set "Toolbar Style" or toolstyle="true"?
 
I'm trying to figure out if it's even possible to set the "Toolbar Style" option from #BUTTON command. I know that you can set "Inset" and "Stack" and "Explore" and "Top" and "Right"... but cMUD's help doesn't list a way to set the button to use "Toolbar Style" option. However, I've heard that there are some undocumented options for buttons.. and I was hoping this would be one of those. Any ideas? The options section of the button is where it says "?????" right now. Thanks in advance. In the MXP section, this is represented as: toolstyle="true"

#BUTTON name {} {} {} {} {} {} {} {size} {85} {33} {} {} {} {black} {black} {Push} {0} "" {?????} {} {id} {1}
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Oct 15, 2013 9:16 pm   
 
There are no undocumented options for #BUTTON. It is an old and obscenely lengthy command, and button in CMud got some newer features that are not reflected in that command. These newer features are reflected in the XML, though.
_________________
EDIT: I didn't like my old signature
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Wed Oct 16, 2013 2:51 pm   
 
I'm not sure if there's a way to change button properties in zScript, but I've always found the easiest way is to do it through the Lua interface:
Code:
#lua {zs.getbutton("id").explore = true/false}

Replace id with the id of your button. See this page for a list of button properties you can control with Lua.
Reply with quote
DefinNormal
Beginner


Joined: 24 May 2012
Posts: 12
Location: United States

PostPosted: Thu Oct 17, 2013 2:34 am   
 
Awesome! Thank you. I never even thought to look into options that Lua might have, that are not available via zScript.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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