Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

Enable a reticule button...

 

Syntax

Code Block
themeRDark
languagejavascript
linenumberstrue
addReticuleButton(button);

Parameters

ParameterTypeMandatoryDescriptionGame version
buttonConstant(tick)

A constant defining which button to display:

For more information, see:

Child pages (Children Display)
alltrue
depthall
pageReticule buttons
excerpttrue

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

Code Block
themeRDark
languagejavascript
titleEnable the research button
linenumberstrue
setTutorialMode(true);
addReticuleButton(RESEARCH);
Div
classnotice box ping

In order for this function to work, you need to be in tutorial mode. Activate it with setTutorialMode()

Div
classbox
Availability
Status
colour
Green
Yellow
title
Stable
3.1 b1+

Requires:

  • Warzone 3.1 Beta 1 and above.
Div
classbox
Contents

Jump to:

Table of Contents
maxLevel5

Div
classbox

See also

Related articles: