Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/selection_panels.js
Show First 20 Lines • Show All 1,137 Lines • ▼ Show 20 Lines | |||||
* the template of the entity that's researching it. | * the template of the entity that's researching it. | ||||
* | * | ||||
* @param {string} [civCode] - The template name of the entity that researches the selected technology. | * @param {string} [civCode] - The template name of the entity that researches the selected technology. | ||||
*/ | */ | ||||
function showTemplateDetails(templateName, civCode) | function showTemplateDetails(templateName, civCode) | ||||
{ | { | ||||
pauseGame(); | pauseGame(); | ||||
Engine.PushGuiPage("page_viewer.xml", { | Engine.PushGuiPage( | ||||
"page_viewer.xml", | |||||
{ | |||||
"templateName": templateName, | "templateName": templateName, | ||||
"callback": "resumeGame", | |||||
"civ": civCode | "civ": civCode | ||||
}); | }, | ||||
resumeGame); | |||||
} | } | ||||
/** | /** | ||||
* If two panels need the same space, so they collide, | * If two panels need the same space, so they collide, | ||||
* the one appearing first in the order is rendered. | * the one appearing first in the order is rendered. | ||||
* | * | ||||
* Note that the panel needs to appear in the list to get rendered. | * Note that the panel needs to appear in the list to get rendered. | ||||
*/ | */ | ||||
Show All 22 Lines |
Wildfire Games · Phabricator