Quantcast

Moved private.SetTextColor() from Core.lua to Utilities.lua

James D. Callahan III [04-03-11 - 12:33]
Moved private.SetTextColor() from Core.lua to Utilities.lua
Filename
Core.lua
Utilities.lua
diff --git a/Core.lua b/Core.lua
index 0fad8f3..d7804c7 100644
--- a/Core.lua
+++ b/Core.lua
@@ -180,13 +180,6 @@ function addon:ClosePopups()
 end

 -------------------------------------------------------------------------------
--- Functions common to most files in the AddOn.
--------------------------------------------------------------------------------
-function private.SetTextColor(color_code, text)
-	return ("|cff%s%s|r"):format(color_code or "ffffff", text)
-end
-
--------------------------------------------------------------------------------
 -- Debugger.
 -------------------------------------------------------------------------------
 function addon:Debug(...)
diff --git a/Utilities.lua b/Utilities.lua
index f170636..514228a 100644
--- a/Utilities.lua
+++ b/Utilities.lua
@@ -20,6 +20,10 @@ local L = LibStub("AceLocale-3.0"):GetLocale(private.addon_name, true)
 -----------------------------------------------------------------------
 -- Methods.
 -----------------------------------------------------------------------
+function private.SetTextColor(color_code, text)
+	return ("|cff%s%s|r"):format(color_code or "ffffff", text)
+end
+
 function private:AddListEntry(lookup_list, identifier, name, location, coord_x, coord_y, faction)
 	if lookup_list[identifier] then
 		addon:Debug("Duplicate lookup: %s - %s.", identifier, name)