Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/reference/viewer/viewer.js
/** | /** | ||||
* Override style so we can get a bigger specific name. | * Override style so we can get a bigger primary name. | ||||
*/ | */ | ||||
g_TooltipTextFormats.nameSpecificBig.font = "sans-bold-20"; | g_TooltipTextFormats.namePrimaryBig.font = "sans-bold-20"; | ||||
g_TooltipTextFormats.nameSpecificSmall.font = "sans-bold-16"; | g_TooltipTextFormats.namePrimarySmall.font = "sans-bold-16"; | ||||
g_TooltipTextFormats.nameGeneric.font = "sans-bold-16"; | g_TooltipTextFormats.nameSecondary.font = "sans-bold-16"; | ||||
/** | /** | ||||
* Page initialisation. May also eventually pre-draw/arrange objects. | * Page initialisation. May also eventually pre-draw/arrange objects. | ||||
* | * | ||||
* @param {Object} data - Contains the civCode and the name of the template to display. | * @param {Object} data - Contains the civCode and the name of the template to display. | ||||
* @param {string} data.templateName | * @param {string} data.templateName | ||||
* @param {string} [data.civ] | * @param {string} [data.civ] | ||||
*/ | */ | ||||
function init(data) | function init(data) | ||||
{ | { | ||||
g_Page = new ViewerPage(); | g_Page = new ViewerPage(); | ||||
g_Page.selectTemplate(data); | g_Page.selectTemplate(data); | ||||
} | } |
Wildfire Games · Phabricator