Quantcast

R-implement support for oUF 1.5.x

Adrian L Lange [02-07-12 - 17:27]
R-implement support for oUF 1.5.x
Filename
oUF_P3lim.lua
tags.lua
diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua
index ecd7d7d..285ec6e 100644
--- a/oUF_P3lim.lua
+++ b/oUF_P3lim.lua
@@ -37,9 +37,9 @@ local function PostCreateAura(element, button)
 end

 local function PostUpdateDebuff(element, unit, button, index)
-	local _, _, _, _, type = UnitAura(unit, index, button.filter)
+	local _, _, _, _, type, _, _, owner = UnitAura(unit, index, button.filter)

-	if(button.owner == 'player') then
+	if(owner == 'player') then
 		local color = DebuffTypeColor[type or 'none']
 		button:SetBackdropColor(color.r * 3/5, color.g * 3/5, color.b * 3/5)
 		button.icon:SetDesaturated(false)
diff --git a/tags.lua b/tags.lua
index 0f9b151..7daa301 100644
--- a/tags.lua
+++ b/tags.lua
@@ -9,7 +9,14 @@ local function ShortValue(value)
 	end
 end

-local tags = oUF.Tags
+local tags
+if(oUF.version == '1.6.0') then
+	tags = oUF.Tags
+else
+	tags = {}
+	tags.Methods = oUF.Tags
+	tags.Events = oUF.TagEvents
+end

 tags.Methods['p3lim:status'] = function(unit)
 	if(not UnitIsConnected(unit)) then