Quantcast

Update to work with oUF 1.5 and WoW 4.0.x

p3lim [10-13-10 - 18:49]
Update to work with oUF 1.5 and WoW 4.0.x
Filename
oUF_P3lim.lua
oUF_P3lim.toc
diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua
index 7b5f3e6..cee3231 100644
--- a/oUF_P3lim.lua
+++ b/oUF_P3lim.lua
@@ -124,7 +124,7 @@ local UnitSpecific = {
 		info:SetFont(FONT, 8, 'OUTLINE')
 		self:Tag(info, '[p3lim:threat]')

-		self:SetAttribute('initial-width', 230)
+		self:SetWidth(230)
 	end,
 	target = function(self)
 		local buffs = CreateFrame('Frame', nil, self)
@@ -144,7 +144,7 @@ local UnitSpecific = {
 		self:Tag(cpoints, '|cffffffff[cpoints]|r')

 		self.Power.PostUpdate = PostUpdatePower
-		self:SetAttribute('initial-width', 230)
+		self:SetWidth(230)
 	end,
 	pet = function(self)
 		local auras = CreateFrame('Frame', nil, self)
@@ -157,7 +157,7 @@ local UnitSpecific = {
 		auras.PostCreateIcon = PostCreateAura
 		self.Auras = auras

-		self:SetAttribute('initial-width', 130)
+		self:SetWidth(130)
 	end,
 }

@@ -229,8 +229,8 @@ local function Shared(self, unit)
 		health:SetPoint('TOPLEFT')

 		self.menu = SpawnMenu
+		self:SetHeight(22)
 		self:SetAttribute('type2', 'menu')
-		self:SetAttribute('initial-height', 22)
 	end

 	if(unit == 'focus' or unit:find('target')) then
@@ -258,8 +258,7 @@ local function Shared(self, unit)
 			debuffs.size = 19

 			health:SetAllPoints()
-			self:SetAttribute('initial-height', 19)
-			self:SetAttribute('initial-width', 161)
+			self:SetSize(161, 19)
 		end

 		if(unit == 'focus') then
diff --git a/oUF_P3lim.toc b/oUF_P3lim.toc
index b85e6bf..f908690 100644
--- a/oUF_P3lim.toc
+++ b/oUF_P3lim.toc
@@ -1,4 +1,4 @@
-## Interface: 30300
+## Interface: 40000
 ## Author: p3lim
 ## Version: 30300.4-Beta
 ## Title: oUF P3lim