View Single Post
07-11-10, 02:06 PM   #1
Attro
A Murloc Raider
Join Date: May 2009
Posts: 6
oUF_AuraBars with 1.4

I've been using oUF_AuraBars with oUF_viv and had the following code added to Dawn's layout (which works perfectly):

if unit=='target' then
local abars = CreateFrame("Frame", nil, self)
abars:SetHeight(1)
abars:SetPoint('BOTTOMLEFT', oUF_Player, 'TOPLEFT', 0, 20)
abars:SetPoint('BOTTOMRIGHT', oUF_Player, 'TOPRIGHT', 0, 20)

abars.auraBarHeight = 17
abars.auraBarTexture = "Interface\\AddOns\\oUF_viv\\media\\dC.tga"
abars.bgalpha = 1
abars.spacing = 3
abars.gap = 3
abars.spellNameObject = font
abars.spellTimeObject = font
abars.filter = AuraBarFilter
abars.sort = true
abars.PostCreateBar = PostCreateAuraBar

self.AuraBars = abars
end

I have since upgraded to Dawn's new layout ouf_nivea (which runs on ouf V1.4) and I can't seem to get ouf_aurabars to spawn. I updated the code to reflect the changes made in ouf_nivea to this:

if unit=='target' then
local abars = CreateFrame("Frame", nil, self)
abars:SetHeight(1)
abars:SetPoint('BOTTOMLEFT', oUF_NiveaPlayerPlayer, 'TOPLEFT', 0, 20)
abars:SetPoint('BOTTOMRIGHT', oUF_NiveaPlayerPlayer, 'TOPRIGHT', 0, 20)

abars.auraBarHeight = 17
abars.auraBarTexture = "Interface\\AddOns\\oUF_Nivea\\media\\dM2.tga"
abars.bgalpha = 1
abars.spacing = 3
abars.gap = 3
abars.spellNameObject = font
abars.spellTimeObject = font
abars.filter = AuraBarFilter
abars.sort = true
abars.PostCreateBar = PostCreateAuraBar

self.AuraBars = abars
end
I've read a number of posts where people are working through some frame spawning issues with V1.4 and was wondering if that is what I'm running into. I'm not overly familiar with .lua coding, but I can typically read through it and figure out how it's working.

If someone could shed some light on what I'm doing wrong or point me in the right direction, it would be greatly appreciated.



  Reply With Quote