Versions Compared

Key

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

Disable a reticule button...

 

Syntax

Code Block
themeRDark
languagejavascript
linenumberstrue
removeReticuleButton(button);

Parameters

ParameterTypeMandatoryDescriptionGame version
buttonConstant(tick)

A constant defining which button to hide:

Image Added

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 removed (or was already hidden)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);
removeReticuleButton(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
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: