User:icktoofay Kamachi/LSL Wishlist/llAddMenuItem

From Second Life Wiki
< User:Icktoofay Kamachi‎ | LSL Wishlist
Revision as of 19:32, 17 June 2008 by Icktoofay Kamachi (talk | contribs) (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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 );

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.

Examples

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

Deep Notes

Signature

//function integer llAddMenuItem( string name );