Neverwinter Script Source | const string TXT_COLOR_GRAY = "<c°°°>"; // Gray const string TXT_COLOR_WHITE = "<cууу>"; // White const string TXT_COLOR_CYAN = "<c уу>"; // Light Cyan const string TXT_COLOR_MAGENTA = "<cу у>"; // Magenta const string TXT_COLOR_YELLOW = "<cуу >"; // Yellow const string TXT_COLOR_RED = "<cу >"; // Red const string TXT_COLOR_GREEN = "<c у >"; // Green const string TXT_COLOR_BLUE = "<c у>"; // Blue const string TXT_COLOR_NONE = ""; // Default (no color) const string TXT_COLOR_END = "</c>"; // (color end TAG) const string TXT_COLOR_DEFAULT = TXT_COLOR_CYAN;
// Function changes color of the string // * Param sText - text to color // * Param sColor - parse a color constant here // * Returns colored string string colorText(string sText, string sColor);
string colorText(string sText, string sColor) { return sColor + sText + TXT_COLOR_END; } |
Выдрана из буржуйского мода. Код _каа_ предусматривал только 4 цвета. здесь больше. пользуйтесь.
|