Little oUF plugins for Monk (Chi points) 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:
-- Monk harmony bar
if select(2, UnitClass("player")) == "MONK" then
local hb = CreateFrame("Frame", "TukuiHarmony", self)
hb:SetPoint("BOTTOMLEFT", self, "TOPLEFT", 0, 1)
hb:SetWidth(250)
hb:SetHeight(8)
hb:SetBackdrop({
bgFile = texture,
edgeFile = C.media.blank,
tile = false, tileSize = 0, edgeSize = 1,
insets = { left = -1, right = -1, top = -1, bottom = -1}
})
hb:SetBackdropColor(unpack(C.media.backdropcolor))
hb:SetBackdropBorderColor(unpack(C.media.backdropcolor))
for i = 1, 5 do
hb[i] = CreateFrame("StatusBar", "TukuiHarmonyBar"..i, hb)
hb[i]:SetHeight(8)
hb[i]:SetStatusBarTexture(C.media.normTex)
if i == 1 then
hb[i]:SetWidth(250 / 5)
hb[i]:SetPoint("LEFT", hb, "LEFT", 0, 0)
else
hb[i]:SetWidth((250 / 5) - 1)
hb[i]:SetPoint("LEFT", hb[i-1], "RIGHT", 1, 0)
end
end
self.HarmonyBar = hb
end