From b5e035383b385c1b68de9d469bc85e23a97e7118 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Sat, 5 Jun 2010 23:04:44 +0200 Subject: [PATCH] Leave reaction colors alone --- oUF_P3lim.lua | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index 80ed2db..632b551 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -5,17 +5,6 @@ --]] -local COLORS = setmetatable({ - power = setmetatable({ - MANA = {0, 144/255, 1} - }, {__index = oUF.colors.power}), - reaction = setmetatable({ - [2] = {1, 0, 0}, - [4] = {1, 1, 0}, - [5] = {0, 1, 0} - }, {__index = oUF.colors.reaction}), -}, {__index = oUF.colors}) - local FONT = [=[Interface\AddOns\oUF_P3lim\media\semplice.ttf]=] local TEXTURE = [=[Interface\AddOns\oUF_P3lim\media\minimalist]=] local BACKDROP = { @@ -107,8 +96,6 @@ local UnitSpecific = { } local function Shared(self, unit) - self.colors = COLORS - self:RegisterForClicks('AnyUp') self:SetScript('OnEnter', UnitFrame_OnEnter) self:SetScript('OnLeave', UnitFrame_OnLeave) @@ -224,6 +211,8 @@ local function Shared(self, unit) end end +oUF.colors.power.MANA = {0, 144/255, 1} + oUF:RegisterStyle('P3lim', Shared) oUF:Factory(function(self) self:SetActiveStyle('P3lim') -- 1.7.9.5