Download
(6Kb)
Download
Updated: 02-09-09 11:59 PM
Patch for:
oUF_Hypocrisy.
Pictures
File Info
Updated:02-09-09 11:59 PM
Created:02-08-09 08:31 AM
Downloads:1,717
Favorites:3
MD5:

oUF Experience Support for oUF Hypocrisy

Version: 1.1
by: GHC [More]

Hey there,

i love the oUF_Hypocrisy frames but they have no EXP Bar support...until now.

Here is the code for the support:


file to edit: oUF_Hypocrisy\layout.lua

search:

Code:
self.AutoShot:SetBackdrop{
			bgFile = "Interface\\ChatFrame\\ChatFrameBackground", tile = true, tileSize = 16,
			insets = {left = -2, right = -2, top = -2, bottom = -2},
			}
			self.AutoShot:SetBackdropColor(0,0,0,1)
		end
add after the end:

Code:
if(IsAddOnLoaded('oUF_Experience')) then
			self.Experience = CreateFrame('StatusBar', nil, self)
			self.Experience:SetPoint('TOP', self, 'TOP', 0, -80)
			self.Experience:SetStatusBarTexture(bartex)
			self.Experience:SetStatusBarColor(0.2,0.7,0.1)
			self.Experience:SetHeight(11)
			self.Experience:SetWidth(180)
			
			self.Experience:SetBackdrop{
			bgFile = "Interface\\ChatFrame\\ChatFrameBackground", tile = true, tileSize = 16,
			insets = {left = -2, right = -2, top = -2, bottom = -2},
			}
			self.Experience:SetBackdropColor(0,0,0,1)
			local r, g, b
			local class = select(2, UnitClass('player'))
			if class then
				r = RAID_CLASS_COLORS[class].r
				g = RAID_CLASS_COLORS[class].g
				b = RAID_CLASS_COLORS[class].b
			end
			self.Experience:SetStatusBarColor(r, g, b)

			if xpbaronmouseover == true then
				self.Experience.MouseOver = true
			else
				self.Experience.MouseOver = false
			end
			
			self.Experience.Tooltip = true

			self.Experience.Text = self.Experience:CreateFontString(nil, 'OVERLAY', 'GameFontHighlightSmall')
			self.Experience.Text:SetFont(font, fontsize-1)
			self.Experience.Text:SetPoint('CENTER', self.Experience)

			self.Experience.bg = self.Experience:CreateTexture(nil, 'BORDER')
			self.Experience.bg:SetAllPoints(self.Experience)
			self.Experience.bg:SetTexture(0.1, 0.1, 0.1)
		end
works fine for me ;-)

Updated width size of the experience bar to fit the UnitFrames.
Post A Reply Comment Options
Unread 02-13-09, 11:43 PM  
GHC
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 18
Uploads: 2
yeah i'm working on it ;-)
Report comment to moderator  
Reply With Quote
Unread 02-13-09, 11:35 AM  
vpr
A Theradrim Guardian

Forum posts: 65
File comments: 272
Uploads: 0
Nice - could you add one for oUF_Reputation too?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: