Thread Tools Display Modes
11-22-09, 09:37 AM   #1
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
plugin help

Ive got a question concerning oUF_ThreatBar,
it doesnt work in my layout...
Ive added the lines in my own lay-out and also added it to .toc
but i dont get it to show up in my screen, and yes i enabled aggro always in blizz gui.
What am i doing wrong here? cause the author isnt responding i thoguth lets try it in this section.

link to add on oUF_ThreatBar
__________________

Tukui | Github
  Reply With Quote
11-22-09, 01:41 PM   #2
wurmfood
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 122
I haven't responded because you posted early in the morning and I just woke up.

Are you getting any lua errors (sometimes may only show up after a /reload)? Otherwise, if you post the code you're using I can see if I can figure out what's wrong.
  Reply With Quote
11-22-09, 03:08 PM   #3
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
Originally Posted by wurmfood View Post
I haven't responded because you posted early in the morning and I just woke up.

Are you getting any lua errors (sometimes may only show up after a /reload)? Otherwise, if you post the code you're using I can see if I can figure out what's wrong.
O srry did i woke u up? ;-) No i dont get any error's and im using
this code in my lay-out

Code:
if( unit == 'player') then
	self.ThreatBar = CreateFrame("StatusBar", self:GetName()..'_ThreatBar', UIParent)
	self.ThreatBar:SetPoint('CENTER', UIParent, 'CENTER', 0, 0)
	self.ThreatBar:SetHeight(10)
	self.ThreatBar:SetWidth(150)
	
	self.ThreatBar:SetStatusBarTexture(texture)
	self.ThreatBar:SetBackdrop(backdrop)
	self.ThreatBar:SetBackdropColor(0, 0, 0, 0)
	
	self.ThreatBar.Text = self.ThreatBar:CreateFontString(nil, 'OVERLAY', 'GameFontHighlightSmall')
	self.ThreatBar.Text:SetPoint('CENTER', self.ThreatBar)
	
	self.ThreatBar.bg = self.ThreatBar:CreateTexture(nil, 'BORDER')
	self.ThreatBar.bg:SetAllPoints(self.ThreatBar)
	self.ThreatBar.bg:SetTexture(0,0,0)
	
	self.ThreatBar.useRawThreat = false
end
__________________

Tukui | Github
  Reply With Quote
11-22-09, 03:33 PM   #4
wurmfood
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 122
Just to make sure, have you already defined texture and backdrop?
  Reply With Quote
11-22-09, 04:10 PM   #5
Ferous
Sheer Sense of Doom
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 863
What wurmfood said, you may need to define the BG and texture i.e.

Code:
self.ThreatBar:SetStatusBarTexture("Interface\\AddOns\\oUF_Novel\\Media\\statusbar")
	self.ThreatBar:SetBackdrop("Interface\\AddOns\\oUF_Novel\\Media\\statusbar")
Or what ever your path is, or if you defined it earlier in your layout.

-Ferous
  Reply With Quote
11-23-09, 02:33 AM   #6
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
ive got local textures so that isnt the problem.
__________________

Tukui | Github
  Reply With Quote
11-23-09, 10:00 AM   #7
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
3rd argument in CreateFrame should be self, not UIParent
  Reply With Quote
11-25-09, 05:02 PM   #8
wurmfood
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 122
Were you able to get it working? If not, send me your layout and I will see if I can find the problem.
  Reply With Quote
11-26-09, 09:39 AM   #9
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
Originally Posted by wurmfood View Post
Were you able to get it working? If not, send me your layout and I will see if I can find the problem.
Yes i got it working with the help of p3lim, ty for all the comments!
__________________

Tukui | Github
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » plugin help


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