From 172ec6b568026a05b89713d166812dbceef9fd77 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Mon, 22 Mar 2010 11:04:44 -0400 Subject: [PATCH] Added SetTextColor(). --- Frame.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Frame.lua b/Frame.lua index e68036c..1cade98 100644 --- a/Frame.lua +++ b/Frame.lua @@ -453,6 +453,13 @@ do end -- do ------------------------------------------------------------------------------- +-- Common to the tooltip and MainPanel list entries. +------------------------------------------------------------------------------- +local function SetTextColor(color_code, text) + return string.format("|cff%s%s|r", color_code or "ffffff", text) +end + +------------------------------------------------------------------------------- -- Tooltip functions and data. ------------------------------------------------------------------------------- local spell_tip = CreateFrame("GameTooltip", "arlSpellTooltip", UIParent, "GameTooltipTemplate") -- 1.7.9.5