Differential D3711 Diff 16562 binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Checkboxes/Nomad.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Checkboxes/Nomad.js
Show All 11 Lines | GameSettingControls.Nomad = class Nomad extends GameSettingControlCheckbox | ||||
{ | { | ||||
this.setHidden(g_GameSettings.map.type != "random"); | this.setHidden(g_GameSettings.map.type != "random"); | ||||
this.setChecked(g_GameSettings.nomad.enabled); | this.setChecked(g_GameSettings.nomad.enabled); | ||||
} | } | ||||
onPress(checked) | onPress(checked) | ||||
{ | { | ||||
g_GameSettings.nomad.setEnabled(checked); | g_GameSettings.nomad.setEnabled(checked); | ||||
this.gameSettingsControl.setNetworkGameAttributes(); | this.gameSettingsControl.setNetworkInitAttributes(); | ||||
} | } | ||||
}; | }; | ||||
GameSettingControls.Nomad.prototype.TitleCaption = | GameSettingControls.Nomad.prototype.TitleCaption = | ||||
translate("Nomad"); | translate("Nomad"); | ||||
GameSettingControls.Nomad.prototype.Tooltip = | GameSettingControls.Nomad.prototype.Tooltip = | ||||
translate("In Nomad mode, players start with only few units and have to find a suitable place to build their city. Ceasefire is recommended."); | translate("In Nomad mode, players start with only few units and have to find a suitable place to build their city. Ceasefire is recommended."); |
Wildfire Games · Phabricator