Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 06-16-11, 10:42 PM   #1
ncbadgirl
A Deviate Faerie Dragon
 
ncbadgirl's Avatar
AddOn Compiler - Click to view compilations
Join Date: Oct 2008
Posts: 10
Angry Threat Bar

Yet back again for some help. Trying to move this threat bar..as it stays put after moving the unitframes. I've played with the coding in lib to either break it..or just srsly mess it up. /facepalm.

What I am looking to do is just place it right under the target frame between buffs/debuffs as it's suppost to.

However this is what I have atm


Code:
lib.ThreatBar = function(self)
if cfg.ThreatBar then
	local ThreatBar = CreateFrame("StatusBar", self:GetName()..'_ThreatBar', UIParent)
	ThreatBar:SetFrameLevel(5)
	ThreatBar:SetPoint("LEFT", UIParent, "BOTTOM", cfg.targetx, cfg.targety-45)
	ThreatBar:SetWidth(245)
	ThreatBar:SetHeight(5)	  
	ThreatBar:SetStatusBarTexture(cfg.statusbar_texture)
	ThreatBar:GetStatusBarTexture():SetHorizTile(false)	   
	ThreatBar.Title = SetFontString(ThreatBar, cfg.font)
	ThreatBar.Title:SetText("Threat:")
	ThreatBar.Title:SetPoint("RIGHT", ThreatBar, "CENTER", -2, 0)
	ThreatBar.Text = SetFontString(ThreatBar, cfg.font)
	ThreatBar.Text:SetPoint("LEFT", ThreatBar, "CENTER", 2, 0)			  
	ThreatBar.bg = ThreatBar:CreateTexture(nil, 'BORDER')
	ThreatBar.bg:SetAllPoints(ThreatBar)
	ThreatBar.bg:SetTexture(0,0,0)	   
	ThreatBar.useRawThreat = false
	
	local h = CreateFrame("Frame", nil, ThreatBar)
	h:SetFrameLevel(4)
	h:SetPoint("TOPLEFT",-5,5)
	h:SetPoint("BOTTOMRIGHT",5,-5)
	frame1px1(h)
	CreateShadow(h)
	
	self.ThreatBar = ThreatBar
end
"ThreatBar:SetPoint("LEFT", UIParent, "BOTTOM", cfg.targetx, cfg.targety-45)" and h:SetFrameLevel(4)
h:SetPoint("TOPLEFT",-5,5)
h:SetPoint("BOTTOMRIGHT",5,-5)
Have been my targets for trying to move it. I just guess I am doing it wrong.
Thank again for the help.
ncbadgirl is offline   Reply With Quote
 

Go BackWoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Threat Bar

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off