|
JWhitney Wanderer
Joined: 20 Oct 2006 Posts: 51
|
Posted: Mon Aug 06, 2012 6:07 am
Menu Buttons |
Hiya -
I am trying to make a button that will list menu items (a menu button), but the help files for it are apparently out of date.
I have a handful of regular menu items that I use by right-clicking the appropriate window, which pops up the menu items along with the regular right-click options. The problem is, when I make a menu button, it automatically just shows those same menu items, but instead I want this button to have it's own options and no others. The help file makes it sound like this can be done with classes, but regardless of what class the button OR the menu items are in, the button just collects them all and spits them out unless the class containing the menu items is disabled (which won't work for me, as I want to be able to still right-click for those choices, but not have them appear in the menu button). Is there a way around this? Or maybe clarification of the outdated help file?
Here is the text, for reference:
Code: |
Instead of defining the states and commands of a button directly, you can point to an existing menu class. Simply select the Menu button type, and enter the name of the menu class into the Command Script field for the button. Using this method, you can share common menu definitions between buttons and popup menus. See the Menus topic for more details. |
Either I'm blind or there is no Command Script field, unless it means the main value field of the button, in which case it doesn't work anyway - any text in there makes the button completely unresponsive.
Thank you for your time. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Mon Aug 06, 2012 10:01 am |
Menu buttons are meant to link to user made speedmenus, so that is intended
Try using a multi-state button instead, that will allow to make a list of options separate from your speedmenu settings.
Using classes is a means of creating submenues without using states in speedmenu objects. (see #HELP #MENU)
I don't think it was intended for buttons of type menu.
As for the command script field... i think that is the value of the button
and i can confirm that buttons of type menu with a non null value, does nothing when clicked. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|
|
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
|
|