Differential D2982 Diff 13468 binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Dropdowns/GameSpeed.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Dropdowns/GameSpeed.js
GameSettingControls.GameSpeed = class extends GameSettingControlDropdown | GameSettingControls.GameSpeed = class extends GameSettingControlDropdown | ||||
{ | { | ||||
constructor(...args) | constructor(...args) | ||||
{ | { | ||||
super(...args); | super(...args); | ||||
this.previousAllowFastForward = undefined; | this.previousAllowFastForward = undefined; | ||||
} | } | ||||
onMapChange(mapData) | onMapChange(mapData) | ||||
{ | { | ||||
let mapValue = mapData && mapData.gameSpeed || undefined; | let mapValue; | ||||
if (mapData && mapData.gameSpeed !== undefined) | |||||
mapValue = mapData.gameSpeed; | |||||
Freagarach: Do we want to enable a gameSpeed of `0`? | |||||
if (mapValue !== undefined && mapValue != g_GameAttributes.gameSpeed) | if (mapValue !== undefined && mapValue != g_GameAttributes.gameSpeed) | ||||
{ | { | ||||
g_GameAttributes.gameSpeed = mapValue; | g_GameAttributes.gameSpeed = mapValue; | ||||
this.gameSettingsControl.updateGameAttributes(); | this.gameSettingsControl.updateGameAttributes(); | ||||
} | } | ||||
} | } | ||||
onPlayerAssignmentsChange() | onPlayerAssignmentsChange() | ||||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Do we want to enable a gameSpeed of 0?