From ece6bfae66d9407a1079aeb2f76bcaaffd2763da Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Fri, 26 Mar 2010 06:20:09 -0400 Subject: [PATCH] Added private.basic_colors and private.category_colors - also slightly modified RGBtoHEX(). --- Constants.lua | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/Constants.lua b/Constants.lua index 2a89139..3b32954 100644 --- a/Constants.lua +++ b/Constants.lua @@ -265,7 +265,7 @@ private.faction_strings = { -- Colors. ------------------------------------------------------------------------------- local function RGBtoHEX(r, g, b) - return string.format("%2x%2x%2x", r * 255, g * 255, b * 255) + return string.format("%02x%02x%02x", r * 255, g * 255, b * 255) end local function GetColorsFromTable(dict) @@ -283,6 +283,7 @@ private.reputation_colors = { ["hated"] = RGBtoHEX(GetColorsFromTable(_G.FACTION_BAR_COLORS[1])), } +-- Recipe difficulty colors. private.difficulty_colors = { ["trivial"] = "808080", ["easy"] = "40bf40", @@ -290,3 +291,28 @@ private.difficulty_colors = { ["optimal"] = "ff8040", ["impossible"] = "ff0000", } + +private.basic_colors = { + ["grey"] = "666666", + ["white"] = "ffffff", + ["yellow"] = "ffff00", + ["normal"] = "ffd100", +} + +-- Colors used in tooltips and the recipe list. +private.category_colors = { + -- Acquire type colors + ["custom"] = "ffcc99", + ["mobdrop"] = "ffffc0", + ["quest"] = "2359ff", + ["reputation"] = "d9ab6a", + ["season"] = "80590e", + ["trainer"] = "d9cb9e", + ["vendor"] = "aad372", + + -- Miscellaneous + ["coords"] = "d4c8b8", + ["location"] = "ffecc1", + ["repname"] = "6a9ad9", + +} -- 1.7.9.5