Difference between revisions of "User:Icktoofay Kamachi/LSL Wishlist/menu"

From Second Life Wiki
Jump to navigation Jump to search
m
m (Robot: <pre> -> <lsl>)
 
Line 6: Line 6:
|p1_type=integer|p1_name=handle|p1_desc=The handle of the menu item that was selected.
|p1_type=integer|p1_name=handle|p1_desc=The handle of the menu item that was selected.
|p2_type=string|p2_name=name|p2_desc=The name of the menu item that was selected.
|p2_type=string|p2_name=name|p2_desc=The name of the menu item that was selected.
|examples=<pre>default {
|examples=<lsl>default {
     state_entry() {
     state_entry() {
         integer item_handle=llAddMenuItem("Hello!");
         integer item_handle=llAddMenuItem("Hello!");
Line 15: Line 15:
     }
     }
}
}
</pre>
</lsl>
|also_functions=
|also_functions=
{{LSL DefineRow||[[User:Icktoofay Kamachi/LSL Wishlist/llAddMenuItem|llAddMenuItem]]|Adds an item to the pie menu of the object.}}
{{LSL DefineRow||[[User:Icktoofay Kamachi/LSL Wishlist/llAddMenuItem|llAddMenuItem]]|Adds an item to the pie menu of the object.}}

Latest revision as of 20:03, 4 August 2009

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 selected.

• 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

<lsl>default {

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

} </lsl>

See Also

Functions

•  llAddMenuItem Adds an item to the pie menu of the object.
•  llRemoveMenuItem Removes an item from the pie menu of the object.

Deep Notes

Signature