Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note
titleRequires tutorial mode

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

Overview

...

Excerpt

Enable a reticule button.

...

Image Removed

Availability

...

.

...

.

 

Syntax

Code Block
themeEclipse
languagejavascript
linenumberstrue
addReticuleButton(button);

Parameters

ParameterTypeMandatoryDescriptionGame version
buttonConstant(tick)

A constant defining which button to display:

Child pages (Children Display)
alltrue
depthall
pageReticule buttons
excerpttrue

Image Added

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
theme

...

RDark
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 tutorial mode with the setTutorialMode() function. 

Div
classbox
Availability
Status
colourGreen
titleStable

Requires:

  • Warzone 3.1 Beta 1 and above.
Div
classbox
Contents

Jump to:

Table of Contents
maxLevel5

Div
classbox

See also

Related articles: