From e971be66439f7796e45d6ab200c87726b113eff0 Mon Sep 17 00:00:00 2001 From: p3lim-52096 Date: Wed, 13 Aug 2008 17:57:25 +0000 Subject: [PATCH] Added buff/debuff border Fixed buff/debuff placement/sizing git-svn-id: svn://svn.wowinterface.com/oUF_P3lim-52/trunk@9 8c7459ed-49dc-4bc8-85d7-b6381a8f5413 --- oUF_P3lim/border.tga | Bin 0 -> 4140 bytes oUF_P3lim/oUF_P3lim.lua | 25 +++++++++++++------------ 2 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 oUF_P3lim/border.tga diff --git a/oUF_P3lim/border.tga b/oUF_P3lim/border.tga new file mode 100644 index 0000000000000000000000000000000000000000..362a4809744c42d25c12e5ca871265f2624de0ae GIT binary patch literal 4140 zcmeH~ZBBzg5QZ0jc?>V0(ZsI{(1gS&C>n2~XW$H+qD`PZ3+XQ!uCdNj*@iYyR>OuL zWtum;omuAHnf+i;>P#8AQ1UyMe|mz_X`1SyDD-BtaSAx#I?Q=hRXRx$9fqM(zyVhq zzwi4-zZUySFc;)Ukkz)sw)qS`@P$teM;kwRC-!>Wx3qVH8^J>d?nMu{`fV@+#Kyc<7W@ktcWs_K*8Y*7JS^ZZ%W^Mv(Qk87 z=byDBZ$k_5=a&4e>CggyW|4p5XY9~IOxyT-_8tKd#RIwEyhx-%PgNnCEY7e(E)9g`tI-W^VERrT%h}e`>m=1wVDF zsXv)BcLDPOrcc}K8(ULvbmWpgK0E7AYT};yJCo=0e}MH|!Y$~mzsLUm82kH++?*&R XY^CDYcmE@J3tpZtKWD*{f2Do^;LMkc literal 0 HcmV?d00001 diff --git a/oUF_P3lim/oUF_P3lim.lua b/oUF_P3lim/oUF_P3lim.lua index 9c0b514..ac0752d 100644 --- a/oUF_P3lim/oUF_P3lim.lua +++ b/oUF_P3lim/oUF_P3lim.lua @@ -239,19 +239,20 @@ local function style(settings, self, unit) self.Power.value:Hide() self.Buffs = CreateFrame('Frame', nil, self) - self.Buffs:SetPoint('TOPLEFT', self, 'TOPRIGHT', 2, 0) - self.Buffs:SetHeight(22 * 2) - self.Buffs:SetWidth(230) - self.Buffs.size = 22 + self.Buffs:SetPoint('TOPLEFT', self, 'TOPRIGHT', 2, 1) + self.Buffs:SetHeight(24 * 2) + self.Buffs:SetWidth(270) + self.Buffs.num = 20 + self.Buffs.size = 24 self.Buffs.spacing = 2 self.Buffs.initialAnchor = 'TOPLEFT' self.Buffs['growth-y'] = 'DOWN' self.Debuffs = CreateFrame('Frame', nil, self) - self.Debuffs:SetPoint('TOPLEFT', self, 'BOTTOMLEFT', 0, -2) - self.Debuffs:SetHeight(22) + self.Debuffs:SetPoint('TOPLEFT', self, 'BOTTOMLEFT', -1, -2) + self.Debuffs:SetHeight(22 * 0.97) self.Debuffs:SetWidth(230) - self.Debuffs.size = 22 + self.Debuffs.size = 22 * 0.97 self.Debuffs.spacing = 2 self.Debuffs.initialAnchor = 'TOPLEFT' self.Debuffs.showDebuffType = true @@ -270,18 +271,18 @@ local function style(settings, self, unit) self.Power:Hide() self.Debuffs = CreateFrame('Frame', nil, self) - self.Debuffs:SetHeight(20) + self.Debuffs:SetHeight(23) self.Debuffs:SetWidth(180) - self.Debuffs.size = 22 + self.Debuffs.size = 23 self.Debuffs.spacing = 2 self.Debuffs.showDebuffType = true self.Debuffs.num = 2 if(unit == 'focus') then - self.Debuffs:SetPoint('TOPLEFT', self, 'TOPRIGHT', 2, 0) + self.Debuffs:SetPoint('TOPLEFT', self, 'TOPRIGHT', 2, 1) self.Debuffs.initialAnchor = 'TOPLEFT' elseif(unit == 'targettarget') then - self.Debuffs:SetPoint('TOPRIGHT', self, 'TOPLEFT', -2, 0) + self.Debuffs:SetPoint('TOPRIGHT', self, 'TOPLEFT', -2, 1) self.Debuffs.initialAnchor = 'TOPRIGHT' self.Debuffs['growth-x'] = 'LEFT' end @@ -312,7 +313,7 @@ oUF:RegisterStyle('P3limPet', setmetatable({ ['initial-height'] = 27, }, {__call = style })) oUF:RegisterStyle('P3limFoToT', setmetatable({ - ['initial-width'] = 180, + ['initial-width'] = 181, ['initial-height'] = 21, ['units'] = 'fotot', }, {__call = style })) -- 1.7.9.5