Download
(2Kb)
Download
Updated: 07-02-12 07:36 PM
Updated:07-02-12 07:36 PM
Created:07-02-12 12:30 AM
Downloads:1,226
Favorites:1
MD5:

oUF Harmony Bar

Version: 1.03
by: tukz [More]

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

Optional Files (0)


Post A Reply Comment Options
Unread 07-28-12, 11:02 AM  
plumwd
A Kobold Labourer
 
plumwd's Avatar

Forum posts: 0
File comments: 10
Uploads: 0
Is this just for TukUi or will it work for other uis as well?
__________________
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: