From e1b524825e161525b36ef0431a4d502c66daa4b3 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sun, 3 Apr 2011 07:33:47 -0500 Subject: [PATCH] Moved private.SetTextColor() from Core.lua to Utilities.lua --- Core.lua | 7 ------- Utilities.lua | 4 ++++ 2 files changed, 4 insertions(+), 7 deletions(-) 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) -- 1.7.9.5