Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/common/tooltips.js
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | function getCostTypes() | ||||
return g_ResourceData.GetCodes().concat(["population", "populationBonus", "time"]); | return g_ResourceData.GetCodes().concat(["population", "populationBonus", "time"]); | ||||
} | } | ||||
function resourceIcon(resource) | function resourceIcon(resource) | ||||
{ | { | ||||
return '[icon="icon_' + resource + '"]'; | return '[icon="icon_' + resource + '"]'; | ||||
} | } | ||||
function resourceNameFirstWord(type) | |||||
{ | |||||
return translateWithContext("firstWord", g_ResourceData.GetNames()[type]); | |||||
} | |||||
function resourceNameWithinSentence(type) | |||||
{ | |||||
return translateWithContext("withinSentence", g_ResourceData.GetNames()[type]); | |||||
} | |||||
function bodyFont(text) | function bodyFont(text) | ||||
{ | { | ||||
return g_TooltipTextFormats.body[0] + text + g_TooltipTextFormats.body[1]; | return g_TooltipTextFormats.body[0] + text + g_TooltipTextFormats.body[1]; | ||||
} | } | ||||
function headerFont(text) | function headerFont(text) | ||||
{ | { | ||||
return g_TooltipTextFormats.header[0] + text + g_TooltipTextFormats.header[1]; | return g_TooltipTextFormats.header[0] + text + g_TooltipTextFormats.header[1]; | ||||
▲ Show 20 Lines • Show All 669 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator