Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/common/gamedescription.js
Show First 20 Lines • Show All 402 Lines • ▼ Show 20 Lines | titles.push({ | ||||
"value": sprintf(translate("%(startingResourcesTitle)s (%(amount)s)"), { | "value": sprintf(translate("%(startingResourcesTitle)s (%(amount)s)"), { | ||||
"startingResourcesTitle": | "startingResourcesTitle": | ||||
g_StartingResources.Title[ | g_StartingResources.Title[ | ||||
g_StartingResources.Resources.indexOf( | g_StartingResources.Resources.indexOf( | ||||
g_GameAttributes.settings.StartingResources)], | g_GameAttributes.settings.StartingResources)], | ||||
"amount": g_GameAttributes.settings.StartingResources | "amount": g_GameAttributes.settings.StartingResources | ||||
}) | }) | ||||
}); | }); | ||||
if (g_GameAttributes.settings.WorldPopulation) | |||||
titles.push({ | titles.push({ | ||||
"label": translate("Population Limit"), | "label": translate("World Population Cap"), | ||||
"value": | |||||
g_PopulationCapacitiesWorld.Title[ | |||||
g_PopulationCapacitiesWorld.Population.indexOf( | |||||
g_GameAttributes.settings.PopulationCapWorld)] | |||||
}); | |||||
else | |||||
titles.push({ | |||||
"label": translate("Player Population Cap"), | |||||
"value": | "value": | ||||
g_PopulationCapacities.Title[ | g_PopulationCapacities.Title[ | ||||
g_PopulationCapacities.Population.indexOf( | g_PopulationCapacities.Population.indexOf( | ||||
g_GameAttributes.settings.PopulationCap)] | g_GameAttributes.settings.PopulationCap)] | ||||
}); | }); | ||||
Nescio: These four lines could be deleted; cf. “Last Man Standing / Allied Victory”. | |||||
titles.push({ | titles.push({ | ||||
Not Done Inline Actionswill that be anytime 0 and we would want to enter the if ? Silier: will that be anytime 0 and we would want to enter the if ? | |||||
Not Done Inline ActionsGood question, I kept to the style used above. Freagarach: Good question, I kept to the style used above. | |||||
"label": translate("Treasures"), | "label": translate("Treasures"), | ||||
"value": g_GameAttributes.settings.DisableTreasures ? | "value": g_GameAttributes.settings.DisableTreasures ? | ||||
Done Inline Actions"World Population Cap" Nescio: "World Population Cap" | |||||
translateWithContext("treasures", "Disabled") : | translateWithContext("treasures", "Disabled") : | ||||
translateWithContext("treasures", "As defined by the map.") | translateWithContext("treasures", "As defined by the map.") | ||||
}); | }); | ||||
titles.push({ | titles.push({ | ||||
"label": translate("Revealed Map"), | "label": translate("Revealed Map"), | ||||
"value": g_GameAttributes.settings.RevealMap | "value": g_GameAttributes.settings.RevealMap | ||||
}); | }); | ||||
Done Inline Actions"Player Population Cap" Nescio: "Player Population Cap" | |||||
titles.push({ | titles.push({ | ||||
"label": translate("Explored Map"), | "label": translate("Explored Map"), | ||||
"value": g_GameAttributes.settings.ExploreMap | "value": g_GameAttributes.settings.ExploreMap | ||||
}); | }); | ||||
titles.push({ | titles.push({ | ||||
"label": translate("Cheats"), | "label": translate("Cheats"), | ||||
Show All 39 Lines |
Wildfire Games · Phabricator
These four lines could be deleted; cf. “Last Man Standing / Allied Victory”.