Little oUF plugins for Shadow Priest (shadow orbs) on MoP Beta. This is not yet include in oUF so Ive made a couple of weeks ago a plugin for it. Haste will probably include this feature in oUF at a later date so this plugin is just for helping oUF layout editor temporary on MoP Beta with their oUF layouts.
Layout Example:
Code:
-- Priest Shadow Orbs Bar
if select(2, UnitClass("player")) == "PRIEST" then
local pb = CreateFrame("Frame", "TukuiShadowOrbsBar", self)
pb:SetPoint("BOTTOMLEFT", self, "TOPLEFT", 0, 1)
pb:SetWidth(250)
pb:SetHeight(8)
pb:SetBackdrop({
bgFile = texture,
edgeFile = C.media.blank,
tile = false, tileSize = 0, edgeSize = 1,
insets = { left = -1, right = -1, top = -1, bottom = -1}
})
pb:SetBackdropColor(unpack(C.media.backdropcolor))
pb:SetBackdropBorderColor(unpack(C.media.backdropcolor))
for i = 1, 3 do
pb[i] = CreateFrame("StatusBar", "TukuiShadowOrbsBar"..i, pb)
pb[i]:SetHeight(8)
pb[i]:SetStatusBarTexture(C.media.normTex)
if i == 1 then
pb[i]:SetWidth((250 / 3) - 1)
pb[i]:SetPoint("LEFT", pb, "LEFT", 0, 0)
else
pb[i]:SetWidth((250 / 3))
pb[i]:SetPoint("LEFT", pb[i-1], "RIGHT", 1, 0)
end
end
self.ShadowOrbsBar = pb
end