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