Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/common/gamedescription.js
Show First 20 Lines • Show All 342 Lines • ▼ Show 20 Lines | titles.push({ | ||||
"value": | "value": | ||||
g_GameAttributes.map == "random" ? | g_GameAttributes.map == "random" ? | ||||
translate("Randomly selects a map from the list") : | translate("Randomly selects a map from the list") : | ||||
g_GameAttributes.settings.Description ? | g_GameAttributes.settings.Description ? | ||||
translate(g_GameAttributes.settings.Description) : | translate(g_GameAttributes.settings.Description) : | ||||
translate("Sorry, no description available."), | translate("Sorry, no description available."), | ||||
}); | }); | ||||
if (g_GameAttributes.settings.Biome) | |||||
{ | |||||
let biome = g_Settings.Biomes.find(biome => biome.Id == g_GameAttributes.settings.Biome); | |||||
titles.push({ | |||||
"label": translate("Biome"), | |||||
"value": biome ? biome.Title : translateWithContext("biome", "Random") | |||||
}); | |||||
} | |||||
if (extended) | if (extended) | ||||
{ | { | ||||
titles.push({ | titles.push({ | ||||
"label": translate("Starting Resources"), | "label": translate("Starting Resources"), | ||||
"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( | ||||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator