Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Excerpt

Enable a reticule button...

 

Syntax

Code Block
themeEclipseRDark
languagejavascript
linenumberstrue
addReticuleButton(button);

Parameters

ParameterTypeMandatoryDescriptionGame version
buttonConstant(tick)

A constant defining which button to display:

Image Added

For more information, see:

Child pages (Children Display)
alltrue
depthall
pageReticule buttons
excerpttrue

Image Removed

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

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: