User:Icktoofay Kamachi/LSL Wishlist/llAddMenuItem

From Second Life Wiki
< User:Icktoofay Kamachi‎ | LSL Wishlist
Revision as of 18:59, 4 August 2009 by Wiki Scribe (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Emblem-important-yellow.png 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

  • This function causes the script to sleep for 0.1 seconds.
All Issues ~ Search JIRA for related Bugs

Examples

<lsl>default {

   state_entry() {
       integer item_handle=llAddMenuItem("Hello!");
   }
   menu(integer handle,string name) {
       llSay(0,name);
       llRemoveMenuItem(handle);
   }

}

</lsl>

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.

Deep Notes

Search JIRA for related Issues

Signature

//function integer llAddMenuItem( string name );