Leave reaction colors alone
Adrian L Lange [06-05-10 - 21:04]
Leave reaction colors alone
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')