Difference between revisions of "User:Icktoofay Kamachi/LSL Wishlist/llAddMenuItem"
Jump to navigation
Jump to search
(New page: {{LSL_Function |func=llAddMenuItem |func_id=-1 |func_sleep=0.1 |func_energy=1.0 |func_desc=Adds an item to the pie menu of the object. |func_footnote=Not Implemented - feature request. |re...) |
m |
||
Line 19: | Line 19: | ||
} | } | ||
</pre> | </pre> | ||
|also_events={{LSL DefineRow||[[User:Icktoofay Kamachi/LSL Wishlist/menu|menu]]|Triggered when a custom pie menu item is selected.}} | |||
|also_functions={{LSL DefineRow||[[User:Icktoofay Kamachi/LSL Wishlist/llRemoveMenuItem|llRemoveMenuItem]]|Removes an item from the pie menu of the object.}} | |||
|mode=request | |mode=request | ||
|self | |self | ||
}} | }} |
Revision as of 21:05, 17 June 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
LSL Feature Request | |
The described function does not exist. This article is a feature request. |
Summary
Function: integer llAddMenuItem( string name );REQUEST | Function ID |
0.1 | Forced Delay |
1.0 | Energy |
Adds an item to the pie menu of the object.
Returns an integer Returns a handle to the menu item, which can then be removed with llRemoveMenuItem.
• string | name | – | The text of the menu item. |
Not Implemented - feature request.
Caveats
Examples
default { state_entry() { integer item_handle=llAddMenuItem("Hello!"); } menu(integer handle,string name) { llSay(0,name); llRemoveMenuItem(handle); } }
See Also
Events
• | menu | – | Triggered when a custom pie menu item is selected. |
Functions
• | llRemoveMenuItem | – | Removes an item from the pie menu of the object. |