Description
| Description: | Adds a menu item at given path. |
| Execution: | Call |
| Groups: | 3DEN |
Syntax
| Syntax: | [path, name, icon, statement, params, children] call cmf_3den_fnc_addMenuItem |
| Parameters: |
path: Array - The path to the location of the new menu item. name: String - The display name for the new item. icon: String - Icon to attach to menu item. (Optional, default: "")statement: Code - Code to run when Item is selected. (Optional, default: {})params: Array - Parameters to pass to the statement. (Optional, default: [])children: Array - Items to add as children.
|
| Return Value: | Number - Item Index |
Examples
| Example 1: |
[[0, 1], "My Menu", "", { systemChat (_this select 0) }, ["Hello World!"]] call cmf_3den_fnc_addMenuItem
|
Additional Information
Notes