Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/civinfo/civinfo.js
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
if (!obj.Name) | if (!obj.Name) | ||||
return ""; | return ""; | ||||
let string = '[font="sans-bold-14"]' + obj.Name + '[/font] '; | let string = '[font="sans-bold-14"]' + obj.Name + '[/font] '; | ||||
if (obj.History) | if (obj.History) | ||||
string += '[icon="iconInfo" tooltip="' + escapeQuotation(obj.History) + '" tooltip_style="civInfoTooltip"]'; | string += '[icon="iconInfo" tooltip="' + escapeQuotation(obj.History) + '" tooltip_style="civInfoTooltip"]'; | ||||
if (obj.Description) | if (obj.Description) | ||||
string += '\n ' + obj.Description; | string += '\n ' + obj.Description; | ||||
return coloredText(string + "\n", "white"); | return setColor(string + "\n", "white"); | ||||
} | } | ||||
/** | /** | ||||
* Updates the GUI after the user selected a civ from dropdown. | * Updates the GUI after the user selected a civ from dropdown. | ||||
* | * | ||||
* @param code {string} | * @param code {string} | ||||
*/ | */ | ||||
function selectCiv(code) | function selectCiv(code) | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator