Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/reference/common/core.js
var g_SelectedCiv = ""; | var g_SelectedCiv = ""; | ||||
var g_CallbackSet = false; | var g_CallbackSet = false; | ||||
function closePage() | function closePage(cb = 0) | ||||
{ | { | ||||
if (g_CallbackSet) | if (g_CallbackSet) | ||||
Engine.PopGuiPageCB(0); | Engine.PopGuiPageCB(cb); | ||||
else | else | ||||
Engine.PopGuiPage(); | Engine.PopGuiPage(); | ||||
} | } | ||||
/** | /** | ||||
* Compile lists of templates buildable/trainable/researchable of a given civ. | * Compile lists of templates buildable/trainable/researchable of a given civ. | ||||
* | * | ||||
* @param {string} civCode - Code of the civ to get template list for. Optional, | * @param {string} civCode - Code of the civ to get template list for. Optional, | ||||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator