(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:

  • BUILD — Used to show or hide the "Build" (hammer) reticule button.
  • CANCEL — Used to show or hide the "Cancel" (central) reticule button.
  • COMMAND — Used to show or hide the "Command" (star) reticule button.
  • DESIGN — Used to show or hide the "Design" (blue components) reticule button.
  • INTELMAP — Used to show or hide the "Intelligence" (earth map) reticule button.
  • MANUFACTURE — Used to show or hide the "Maufacture" (factory) reticule button.
  • OPTIONS — This constant is deprecated, use COMMAND instead.
  • RESEARCH — Used 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:

Â