>wowhelm_
~/forever/addon-api/function/C_ColorUtil.WrapTextInColorCode

C_ColorUtil.WrapTextInColorCode

documented function · ColorUtil
C_ColorUtil.WrapTextInColorCode(text, textColorCode) : coloredText

Wraps a given string with color code markup.

──ARGUMENTS
text
cstring (Text to be wrapped in color markup.)
textColorCode
cstring (Color to apply to the text, formatted as an 8-byte ARGB string as returned by GenerateTextColorCode.)
──RETURNS
coloredText
string (The input text wrapped in '|c' and '|r' quoted code sequences for the supplied color.)
──DETAILS
Secret Arguments
AllowedWhenTainted
──VERSION HISTORY

Present since at least 1.60.1.70707, the first build we track.