Menu object class Orion Assistant - Hotride/OrionUO GitHub Wiki
Command format:
ReturnType NameSpace.name(requiredParameters, [optionalParameters=defaultValue]);
-
ReturnType - the return value of the function (void - the function returns nothing);
-
NameSpace - the scope of the function;
-
name - the name of the function;
-
requiredParameters - required parameters;
-
optionalParameters - optional parameters, the default value is indicated after the = sign
String menu.Serial();
Result: Menu serial number.
String menu.ID();
Result: Menu identifier number.
String menu.Name();
Result: Menu name.
bool menu.IsGrayMenu();
Result: Gray Menu (chart) or normal.
void menu.Select(index);
Choose menu by index element under current menu.
void menu.Select('name');
Choose menu by item name under current menu.
void menu.Close();
Close current menu without changes.
int menu.ItemsCount();
Result: Item quantity in the menu.
int menu.ItemID(index);
Result: ID of an item menu under specified index.
String menu.ItemGraphic(index);
Result: Graphic of an item menu under specified index.
String menu.ItemColor(index);
Result: Color of an item menu under specified index.
String menu.ItemName(index);
Result: Name of an item menu under specified index.