Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/mod/gui/common/guitags.js
/** | /** | ||||
* Add color to text string. | * Add color to text string. | ||||
*/ | */ | ||||
function coloredText(text, color) | function coloredText(text, color) | ||||
ffffffff: only suggestion with extra font parameter, not used now (on this function) | |||||
{ | { | ||||
return '[color="' + color + '"]' + text + '[/color]'; | return '[color="' + color + '"]' + text + '[/color]'; | ||||
} | } | ||||
//TODO: font setter | /** | ||||
* Add font to text string. | |||||
*/ | |||||
function setFont(text, font) | |||||
Not Done Inline Actionsonly suggestion with extra color parameter, not used now (on this function) ffffffff: only suggestion with extra color parameter, not used now (on this function) | |||||
Not Done Inline ActionssetColor, setFont and setFontColor(text, font, color)? elexis: `setColor`, `setFont` and `setFontColor(text, font, color)`? | |||||
Not Done Inline ActionsY!:) ffffffff: Y!:) | |||||
{ | |||||
return '[font="' + font + '"]' + text + '[/font]'; | |||||
} |
Wildfire Games · Phabricator
only suggestion with extra font parameter, not used now (on this function)