Context menu commands - 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
void Orion.RequestContextMenu('serial');
Send a context menu request for given serial.
void Orion.WaitContextMenu('serial', index);
Add context menu wait hook.
-
serial - serial of context menu object. If serial equals 0, serial check will be ignored.
-
index - index of context menu choice, starting with 0.
void Orion.CancelContextMenu();
Cancel all context menu hooks.
Introduced in 2.0.15.0
bool Orion.WaitForContextMenu([delay=1000]);
Awaits context menu for 'delay' amount of time in ms.
Returns true is context menu was received during this period.
Introduced in 3.0.0.0
void Orion.InfoContextMenu();
Information about the latest context menu.
void Orion.WaitContextMenuID('serial', itemIndex);
Add context menu wait hook.
-
serial - serial of context menu object. If serial equals 0, serial check will be ignored.
-
itemIndex - ID of the menu item (can be recognized by the InfoContextMenu function).
void Orion.WaitContextMenuCliloc('serial', clilocID);
Add context menu wait hook.
-
serial - serial of context menu object. If serial equals 0, serial check will be ignored.
-
clilocID - Cliloc index whose text is displayed in the menu (can be found by the InfoContextMenu function).