From d9a8334383cf5cdc81233fcea510c6664f5b5ff7 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Fri, 26 Mar 2010 08:21:37 -0400 Subject: [PATCH] Removed Colour.lua --- AckisRecipeList.toc | 1 - Colour.lua | 70 --------------------------------------------------- 2 files changed, 71 deletions(-) delete mode 100644 Colour.lua diff --git a/AckisRecipeList.toc b/AckisRecipeList.toc index 6f4ca36..bd8dc9d 100644 --- a/AckisRecipeList.toc +++ b/AckisRecipeList.toc @@ -65,7 +65,6 @@ locale.xml Constants.lua ARL.lua Config.lua -Colour.lua Waypoint.lua Frame.lua Datamine.lua diff --git a/Colour.lua b/Colour.lua deleted file mode 100644 index 58ece21..0000000 --- a/Colour.lua +++ /dev/null @@ -1,70 +0,0 @@ ---[[ -************************************************************************ -Colour.lua -Colouring functions for ARL -************************************************************************ -File date: @file-date-iso@ -File revision: @file-revision@ -Project revision: @project-revision@ -Project version: @project-version@ -************************************************************************ -Code adopted from Crayon library -************************************************************************ -Please see http://www.wowace.com/addons/arl/ for more information. -************************************************************************ -This source code is released under All Rights Reserved. -************************************************************************ -]] - - -local MODNAME = "Ackis Recipe List" -local addon = LibStub("AceAddon-3.0"):GetAddon(MODNAME) - ---Colour constants -local GREY = "666666" - -local TRAINER = "d9cb9e" -local VENDOR = "aad372" -local QUEST = "2359ff" -local REP = "ff7c0a" -local SEASON = "80590e" -local MOBDROP = "ffffc0" - -local NORMAL = "ffd100" - ----------------------------------------------------------------------- ---Text colourization functions ----------------------------------------------------------------------- - --- Changes any string of text to the specified hex colour -function addon:Colourize(hexColour, text) - return "|cff" .. tostring(hexColour or 'ffffff') .. tostring(text) .. "|r" -end - --- Converts text to Grey -function addon:Grey(text) - return self:Colourize(GREY, text) -end - -------------------------------------------------------------------------------- --- Colorize a string based off of a name entry. -------------------------------------------------------------------------------- -do - local COLOR_NAMES = { - ["TRAINER"] = TRAINER, - ["VENDOR"] = VENDOR, - ["QUEST"] = QUEST, - ["REP"] = REP, - ["SEASON"] = SEASON, - ["MOBDROP"] = MOBDROP, - - ["GREY"] = GREY, - ["RED"] = RED, - - ["HIGH"] = HIGH, - } - - function addon:hexcolor(colorstring) - return "|cff"..(COLOR_NAMES[colorstring] or NORMAL) - end -end -- do -- 1.7.9.5