Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/common/color.js
Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
return sprintf(translate("Press %(hotkey)s to autocomplete playernames."), { | return sprintf(translate("Press %(hotkey)s to autocomplete playernames."), { | ||||
"hotkey": | "hotkey": | ||||
"[color=\"" + g_HotkeyColor + "\"]" + | "[color=\"" + g_HotkeyColor + "\"]" + | ||||
"\\[" + translateWithContext("hotkey", "Tab") + "]" + | "\\[" + translateWithContext("hotkey", "Tab") + "]" + | ||||
"[/color]" | "[/color]" | ||||
}); | }); | ||||
} | } | ||||
/** | |||||
* Adds grey font if savegame/replay is not compatible. | |||||
*/ | |||||
function compatibilityColor(text, isCompatible) | |||||
{ | |||||
return isCompatible ? text : '[color="96 96 96"]' + text + '[/color]'; | |||||
} |
Wildfire Games · Phabricator