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

removeReticuleButton()

Disable a reticule button...

 

Syntax

removeReticuleButton(button);

Parameters

ParameterTypeMandatoryDescriptionGame version
buttonConstant(tick)

A constant defining which button to hide:

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 removed (or was already hidden)3.1 Beta 1
<error>ErrorThe "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: