Thread Tools Display Modes
10-17-14, 01:14 AM   #1
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
Threat info

Okay so blizzard displays threat on tooltips. If I wanted a frame that just displayed what the tooltip showed for threat on my target. Where would i find that function? In other words how can i use the percentage data already available from that else where? It looks like threat functions are in the targetframe.lua but im not seeing where it puts it into anything i can use easily.
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
10-17-14, 02:07 AM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
http://wowprogramming.com/docs/api_categories#threat
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
10-17-14, 12:58 PM   #3
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
Thanks, of course that brings me to another question. Is there an event that we should be using to update then? Or OnUpdate? Would prefer to stay away from using onupdate...
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
10-17-14, 01:09 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
There are a couple in this list: http://wowprogramming.com/docs/events Did you try them?
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
10-17-14, 01:42 PM   #5
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
I dont see anything listed with threat in the name, do you? And am i right in assuming that wowiki must not be updated anymore? That was my goto lol always felt easier to navigate then wowprograming is but...

and btw Hi guys long time no see.
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
10-17-14, 02:00 PM   #6
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
There are two events with threat in their name on wowprogramming's events list, just ctrl+F and search the page.

If you want exact threat percentages, then you should be using an OnUpdate script to update your text and throttle it however you want, because threat changes almost constantly during combat.
  Reply With Quote
10-17-14, 02:12 PM   #7
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
Yea I dont think either of those events fire enough to be accurate. OnUpdate it is i guess.
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Threat info

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