Quantcast

In Frame.lua: Moved SetTextColor() further up the file.

James D. Callahan III [03-26-10 - 10:16]
In Frame.lua: Moved SetTextColor() further up the file.
Filename
Frame.lua
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")