Differential D3711 Diff 16562 binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Sliders/RelicCount.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/GameSettings/Single/Sliders/RelicCount.js
Show All 24 Lines | if (g_GameSettings.relic.available) | ||||
g_GameSettings.relic.count, | g_GameSettings.relic.count, | ||||
value == 0 ? this.InstantVictory : sprintf(this.CaptionRelicCount(value), this.sprintfValue)); | value == 0 ? this.InstantVictory : sprintf(this.CaptionRelicCount(value), this.sprintfValue)); | ||||
} | } | ||||
} | } | ||||
onValueChange(value) | onValueChange(value) | ||||
{ | { | ||||
g_GameSettings.relic.setCount(value); | g_GameSettings.relic.setCount(value); | ||||
this.gameSettingsControl.setNetworkGameAttributes(); | this.gameSettingsControl.setNetworkInitAttributes(); | ||||
} | } | ||||
}; | }; | ||||
GameSettingControls.RelicCount.prototype.TitleCaption = | GameSettingControls.RelicCount.prototype.TitleCaption = | ||||
translate("Relic Count"); | translate("Relic Count"); | ||||
GameSettingControls.RelicCount.prototype.CaptionRelicCount = | GameSettingControls.RelicCount.prototype.CaptionRelicCount = | ||||
relicCount => translatePlural("%(number)s relic", "%(number)s relics", relicCount); | relicCount => translatePlural("%(number)s relic", "%(number)s relics", relicCount); | ||||
Show All 10 Lines |
Wildfire Games · Phabricator