From 41f1825882b86dd42e4629c7026b4dd3699a4d6b Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Fri, 30 Nov 2012 21:03:35 +0100 Subject: [PATCH] Add AltPowerBar element --- oUF_P3lim.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index 61a4832..913531d 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -228,6 +228,21 @@ local UnitSpecific = { ExperienceBG:SetAllPoints() ExperienceBG:SetTexture(1/3, 1/3, 1/3) + local AltPower = CreateFrame('StatusBar', nil, self) + AltPower:SetPoint('BOTTOM', 0, -10) + AltPower:SetSize(230, 6) + AltPower:SetStatusBarTexture(TEXTURE) + AltPower:SetStatusBarColor(0.15, 0.7, 0.1) + AltPower:SetBackdrop(BACKDROP) + AltPower:SetBackdropColor(0, 0, 0) + AltPower:EnableMouse(true) + AltPower.colorTexture = true + self.AltPowerBar = AltPower + + local AltPowerBG = AltPower:CreateTexture(nil, 'BORDER') + AltPowerBG:SetAllPoints() + AltPowerBG:SetTexture(1/3, 1/3, 1/3) + self.Debuffs.size = 22 self.Debuffs:SetSize(230, 22) self.Debuffs.PostUpdateIcon = PostUpdateBuff -- 1.7.9.5