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

From Second Life Wiki
Jump to navigation Jump to search
m
m (Robot: <pre> -> <lsl>)
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
|func_footnote=Not Implemented - feature request.
|func_footnote=Not Implemented - feature request.
|p1_type=integer|p1_name=handle|p1_desc=The handle of the menu item to remove.
|p1_type=integer|p1_name=handle|p1_desc=The handle of the menu item to remove.
|examples=<pre>default {
|examples=<lsl>default {
     state_entry() {
     state_entry() {
         integer item_handle=llAddMenuItem("Hello!");
         integer item_handle=llAddMenuItem("Hello!");
Line 16: Line 16:
     }
     }
}
}
</pre>
</lsl>
|also_events={{LSL DefineRow||[[User:Icktoofay Kamachi/LSL Wishlist/menu|menu]]|Triggered when a custom pie menu item is selected.}}
|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/llAddMenuItem|llAddMenuItem]]|Adds an item to the pie menu of the object.}}
|also_functions={{LSL DefineRow||[[User:Icktoofay Kamachi/LSL Wishlist/llAddMenuItem|llAddMenuItem]]|Adds an item to the pie menu of the object.}}
|mode=request
|mode=request
|self
|self
|sort=llRemoveMenuItem
|sort=RemoveMenuItem
}}
}}

Latest revision as of 19:03, 4 August 2009

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

Summary

Function: llRemoveMenuItem( integer handle );

Removes an item from the pie menu of the object. If that item does not exist, an error is shouted on DEBUG_CHANNEL.

• integer handle The handle of the menu item to remove.

Not Implemented - feature request.

Caveats

  • This function causes the script to sleep for 0.1 seconds.

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

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

Deep Notes

Signature

//function void llRemoveMenuItem( integer handle );