Quantcast Threat info - WoWInterface
 
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
__________________
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  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,700
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,059
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

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