Nameplate threat texture
View Single Post
02-17-13, 01:41 AM
Join Date: Mar 2006
Originally Posted by
What are you passing to 'GetThreatRegion()'?
That seems pretty obvious just from looking at the snippet he posted and you quoted...
is a reference to the nameplate object itself. Am I misinterpreting your question?
Anyway, the whole GetThreatRegion() function is extremely inefficient. You should identify all of the nameplate's children and regions
-- the first time you see the nameplate -- and attach them to the nameplate as table key/value pairs, eg.
nameplate.threatRegion = x
so you can get a reference to each region from a simple table lookup, instead of needing to do a whole chain of function lookups every time.
for an example.
Troubleshoot an addon
Turn any code into an addon
More addon resources
Need help with your code?
code! Attach or
Please don’t PM me
about addon bugs or code questions. Post a comment or forum thread instead!
View Public Profile
Send a private message to Phanx
Find More Posts by Phanx