DAZ Script | |
---|---|
MenuType | { CustomMenu, PaneMenu, ViewToolMenu, SaveAsMenu, OpenRecentMenu } |
DAZ Script | |
---|---|
void | clear () |
void | exec () |
void | exec ( Point pos ) |
DzActionMenu | findOrCreateSubMenu ( String path, Boolean asDefault=false ) |
DzActionMenu | findSubMenu ( String path ) |
DzActionMenuItem | getItem ( Number i ) |
Array | getItemList () |
Number | getNumItems () |
DzActionMenuItem | getParentItem () |
String | getPath () |
Boolean | hasItems () |
void | insertAction ( String identifier, Number i=-1 ) |
void | insertCustomAction ( String guid, Number i=-1 ) |
void | insertFileMergeAction ( String fileName, String label=“”, Number i=-1 ) |
void | insertFileOpenAction ( String fileName, String label=“”, Number i=-1 ) |
void | insertItem ( DzActionMenuItem item, Number i=-1 ) |
void | insertMenu ( String label, DzActionMenu menu, Number i=-1 ) |
void | insertSeparator ( Number i=-1 ) |
void | insertSubMenu ( String label, DzActionMenu menu, Boolean asDefault=false, Number i=-1 ) |
void | removeItem ( DzActionMenuItem item ) |
void | simplifySeparators () |
void | defaultChanged ( Boolean yesNo ) |
void | itemListChanged () |
See Also:
TODO: Add description.
Holds whether or not the menu is considered to be created by the application (true
) or created by the user (false
).
Since:
Holds the type of the menu (Read Only until 4.6.0.74)
void : clear()
Removes all items from the menu.
void : exec()
Displays the menu to the user.
Displays the menu to the user at the given position.
Parameter(s):
DzActionMenu : findOrCreateSubMenu( String path, Boolean asDefault=false )
Parameter(s):
true
, any menus that are created will be marked as a default menu; created/placed by the application. If false
(default), any menus created will be marked as a custom menu; created/placed by the user.Return Value:
Since:
DzActionMenu : findSubMenu( String path )
Parameter(s):
Return Value:
DzActionMenuItem : getItem( Number i )
Parameter(s):
Return Value:
Array : getItemList()
Return Value:
Number : getNumItems()
Return Value:
DzActionMenuItem : getParentItem()
Return Value:
Since:
Return Value:
Since:
Return Value:
true
if there are items in this menu, otherwise false
.void : insertAction( String identifier, Number i=-1 )
Inserts the given action into the menu at the given location.
Parameter(s):
void : insertCustomAction( String guid, Number i=-1 )
Inserts the given custom action into the menu at the given location.
Parameter(s):
void : insertFileMergeAction( String fileName, String label=“”, Number i=-1 )
Inserts the given file merge action into the menu at the given location.
Parameter(s):
Since:
void : insertFileOpenAction( String fileName, String label=“”, Number i=-1 )
Inserts the given file open action into the menu at the given location.
Parameter(s):
Since:
void : insertItem( DzActionMenuItem item, Number i=-1 )
Inserts the given item into the menu at the given location.
Parameter(s):
void : insertMenu( String label, DzActionMenu menu, Number i=-1 )
Deprecated
Exists only to keep old code from crashing. Do not use in new code. Use insertSubMenu() instead.
void : insertSeparator( Number i=-1 )
Inserts a separator into the menu at the given location.
Parameter(s):
void : insertSubMenu( String label, DzActionMenu menu, Boolean asDefault=false, Number i=-1 )
Inserts the given menu into the menu at the given location as a submenu.
Parameter(s):
true
, the menu is inserted as a default menu. If false
(default) the menu is inserted as a custom menu.See Also:
Since:
void : removeItem( DzActionMenuItem item )
Remove the given item from the menu.
Parameter(s):
void : simplifySeparators()
Removes any duplicate separators from the menu by replacing two or more adjacent separators with a single separator.
void : defaultChanged( Boolean yesNo )
Signature:“defaultChanged(bool)”
Emitted when the default state of this menu has been changed.
Parameter(s):
Since:
void : itemListChanged()
Signature:“itemListChanged()”
Emitted when items are added to or removed from this menu.