WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Threat info (https://www.wowinterface.com/forums/showthread.php?t=50130)

Grimsin 10-17-14 01:14 AM

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.

Phanx 10-17-14 02:07 AM

http://wowprogramming.com/docs/api_categories#threat

Grimsin 10-17-14 12:58 PM

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...

Seerah 10-17-14 01:09 PM

There are a couple in this list: http://wowprogramming.com/docs/events Did you try them?

Grimsin 10-17-14 01:42 PM

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.

semlar 10-17-14 02:00 PM

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.

Grimsin 10-17-14 02:12 PM

Yea I dont think either of those events fire enough to be accurate. OnUpdate it is i guess.


All times are GMT -6. The time now is 10:46 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI