Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/GameSpeedControl.js
/** | /** | ||||
* This class controls the gamespeed. | * This class controls the gamespeed. | ||||
* The control is only available in singleplayer and replaymode. | * The control is only available in single-player and replay mode. | ||||
* Fast forwarding is enabled if and only if there is no human player assigned. | * Fast forwarding is enabled if and only if there is no human player assigned. | ||||
*/ | */ | ||||
class GameSpeedControl | class GameSpeedControl | ||||
{ | { | ||||
constructor(playerViewControl) | constructor(playerViewControl) | ||||
{ | { | ||||
this.gameSpeed = Engine.GetGUIObjectByName("gameSpeed"); | this.gameSpeed = Engine.GetGUIObjectByName("gameSpeed"); | ||||
this.gameSpeed.onSelectionChange = this.onSelectionChange.bind(this); | this.gameSpeed.onSelectionChange = this.onSelectionChange.bind(this); | ||||
Show All 34 Lines |
Wildfire Games · Phabricator