Other great resources: Official JS API docs, Scripting Forum
addReticuleButton()
- Aubergine
Owned by Aubergine
Enable a reticule button...
Syntax
addReticuleButton(button);
Parameters
Parameter | Type | Mandatory | Description | Game version |
---|---|---|---|---|
button | Constant | A constant defining which button to display: For more information, see:
| 3.1 Beta 1 |
Return value
Value | Type | Description | Game version |
---|---|---|---|
undefined | Undefined | The reticule button was added (or was already present) | 3.1 Beta 1 |
<error> | Error | The "button" parameter contained an invalid constant. | 3.1 Beta 1 |
Example
Enable the research button
setTutorialMode(true); addReticuleButton(RESEARCH);
In order for this function to work, you need to be in tutorial mode. Activate it with setTutorialMode().
Availability 3.1 B1+
Requires:
- Warzone 3.1 Beta 1 and above.
Contents
Jump to:
See also
Related articles:
- Reticule buttons – overview of reticule button constants
- removeReticuleButton() – disable a reticule button
- setTutorialMode() – enable or disable tutorial mode
- Images, Icons & Cursors – how to customise the button images