(info) Other great resources: Official JS API docs, Scripting Forum

addReticuleButton()

Enable a reticule button...

 

Syntax

addReticuleButton(button);

Parameters

ParameterTypeMandatoryDescriptionGame version
buttonConstant(tick)

A constant defining which button to display:

For more information, see:

  • BUILDUsed to show or hide the "Build" (hammer) reticule button.
  • CANCELUsed to show or hide the "Cancel" (central) reticule button.
  • COMMANDUsed to show or hide the "Command" (star) reticule button.
  • DESIGNUsed to show or hide the "Design" (blue components) reticule button.
  • INTELMAPUsed to show or hide the "Intelligence" (earth map) reticule button.
  • MANUFACTUREUsed to show or hide the "Maufacture" (factory) reticule button.
  • OPTIONSThis constant is deprecated, use COMMAND instead.
  • RESEARCHUsed to show or hide the "Research" (green circuit board) reticule button.

3.1 Beta 1

Return value

ValueTypeDescriptionGame version
undefinedUndefinedThe reticule button was added (or was already present)3.1 Beta 1
<error>ErrorThe "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: