Difference between revisions of "User:Icktoofay Kamachi/Sandbox"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{LSL_Function
{{LSL_Event
|func=llRemoveMenuItem
|event=menu
|func_id=-1
|event_id=-1
|func_sleep=0.1
|event_desc=Triggered when a custom pie menu item is used.
|func_energy=1.0
|event_footnote=Not Implemented - feature request. Also, the llDetected functions *will* work in this event.
|func_desc=Removes an item from the pie menu of the object.
|p1_type=integer|p1_name=handle|p1_desc=The handle of the menu item that was selected.
|func_footnote=Not Implemented - feature request.
|p2_type=string|p2_name=name|p2_desc=The name of the menu item that was selected.
|p1_type=integer|p1_name=name|p1_desc=The text of the menu item.
|examples=<pre>default {
|examples=<pre>default {
     state_entry() {
     state_entry() {

Revision as of 20:27, 17 June 2008

Emblem-important-yellow.png LSL Feature Request
The described event does not exist. This article is a feature request.

Description

Event: menu( integer handle, string name ){ ; }

Triggered when a custom pie menu item is used.

• integer handle The handle of the menu item that was selected.
• string name The name of the menu item that was selected.

Not Implemented - feature request. Also, the llDetected functions *will* work in this event.

Examples

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

Deep Notes

Signature