setTutorialMode(bool)
Sets a number of restrictions appropriate for tutorial if set to true.
...
Overview
Excerpt |
---|
Toggles "tutorial mode" in a single-player game. |
Or as cybersphinx describes it: "It makes the game annoying. Disables saving, enables toggling the reticule buttons with the above functions."..."
Availability
Warzone 3.1 Beta 1 and above
Syntax
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
setTutorialMode(active) |
Parameters
Parameter | Type | Mandatory | Description | Game version |
---|---|---|---|---|
active | Boolean | Make tutorial mode active?
| 3.1 Beta 1 |
Return value
Value | Type | Description | Game version |
---|---|---|---|
undefined | Undefined | The function always returns undefined | 3.1 Beta 1 |
Examples
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
setTutorialMode(false); // turn off tutorial mode
removeReticuleButton(DESIGN); // has no effect because tutorial mode is switched off
setTutorialMode(true); // activate tutorial mode
removeReticuleButton(DESIGN); // Design reticule button is removed successfully |
See also
- addReticuleButton() – add a reticule button
- removeReticuleButton() – remove a reticule button
- User Interface – quick reference of all JS API features relating to the user interface