ContextMenu
From LoTROInterface Wiki
API Reference > Turbine.UI.ContextMenu
Defines a menu that can be displayed to the user.
Methods
| Name | Description |
|---|---|
| Close | Closes the menu if it is displayed. |
| GetItems | Gets the menu items collection. |
| ShowMenu | Displays the menu. |
| ShowMenuAt | Displays the menu. |
Remarks
Context menus are popup menus that can be displayed anywhere on the screen. They contain a collection of menu items that represents choices the user can make.Only one context menu can be displayed at a time and any user input outside of the context menu will cause the menu to be closed.
Examples
This example will display a context menu at the current mouse position. A message will be display in the chat window displaying which option was clicked.
| Context Menu Example | |
|---|---|
| contextMenu = Turbine.UI.ContextMenu(); | |
Inheritence Hierarchy
- Turbine.UI.ContextMenu