IndexOf (MenuItemList)
From LoTROInterface Wiki
API Reference > Turbine.UI.MenuItemList.IndexOf()
Gets the index of a menu item in the list.
Syntax
Lua | |
---|---|
function MenuItemList:IndexOf(item); |
Parameters
item
Type: MenuItem
The item to get the index of.
Returns
Type: number
The index of the item in the list or -1 if it does not exist in the list.
Remarks
Gets the index of a menu item in the list.