 |
DefinNormal Beginner
Joined: 24 May 2012 Posts: 12 Location: United States
|
Posted: 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} |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
 |
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: 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. |
|
|
 |
DefinNormal Beginner
Joined: 24 May 2012 Posts: 12 Location: United States
|
Posted: 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.
|
|
|
 |
|
|