From 7daeb208e274c45261de164ac121acde2e2ad7c5 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Fri, 26 Mar 2010 06:16:05 -0400 Subject: [PATCH] In Frame.lua: Moved SetTextColor() further up the file. --- Frame.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Frame.lua b/Frame.lua index c87c796..f0cfeb2 100644 --- a/Frame.lua +++ b/Frame.lua @@ -225,6 +225,13 @@ function addon:ClosePopups() end ------------------------------------------------------------------------------- +-- Common to many functions throughout the file. +------------------------------------------------------------------------------- +local function SetTextColor(color_code, text) + return string.format("|cff%s%s|r", color_code or "ffffff", text) +end + +------------------------------------------------------------------------------- -- Sets show and hide scripts as well as text for a tooltip for the given frame. ------------------------------------------------------------------------------- local SetTooltipScripts @@ -460,13 +467,6 @@ 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