From 1d59351ad35a89782b3cc6516304e0875b7e9870 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Sat, 11 May 2013 07:11:01 +0200 Subject: [PATCH] Add Runes --- oUF_P3lim.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index 5df2197..ea8203c 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -230,6 +230,31 @@ local UnitSpecific = { AltPowerBG:SetAllPoints() AltPowerBG:SetTexture(1/3, 1/3, 1/3) + local playerClass = select(3, UnitClass('player')) + if(playerClass == 6) then + local Runes = {} + for index = 1, 6 do + local Rune = CreateFrame('StatusBar', nil, self) + Rune:SetPoint('TOPLEFT', self, 'BOTTOMLEFT', (index - 1) * 230 / 6 + (index > 1 and 1 or 0), -4) + Rune:SetSize(230 / 6 - (index == 1 and 0 or 1), 6) + Rune:SetStatusBarTexture(TEXTURE) + Rune:SetBackdrop(BACKDROP) + Rune:SetBackdropColor(0, 0, 0) + + local RuneBG = Rune:CreateTexture(nil, 'BORDER') + RuneBG:SetAllPoints() + RuneBG:SetTexture(1/3, 1/3, 1/3) + + Runes[index] = Rune + end + + self.Runes = Runes + + self.colors.runes[1] = {4/5, 0, 0} + self.colors.runes[3] = {0, 2/5, 2/3} + self.colors.runes[4] = {4/5, 1/5, 1/5} + end + self.Debuffs.size = 22 self.Debuffs:SetSize(230, 22) self.Debuffs.PostUpdateIcon = PostUpdateBuff -- 1.7.9.5