From 59cdfe83c43c100c7156ce9e59f38df654926861 Mon Sep 17 00:00:00 2001 From: p3lim Date: Wed, 13 Oct 2010 20:49:49 +0200 Subject: [PATCH] Update to work with oUF 1.5 and WoW 4.0.x --- oUF_P3lim.lua | 11 +++++------ oUF_P3lim.toc | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) 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 -- 1.7.9.5