View Single Post
10-22-10, 02:12 AM   #25
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
I'm back on this topic because it just pisses me off that my nameplates do not work correctly.

I have a question on that topic. Basically hooking wow widgets and the threat texture.

I'm hooking the SetVertexColor widget for the threat region of the nameplate. But the function does not fire at all. But if I update the frame via onUpdate and print out the vertexcolor applied to the threatregion via "print(threatRegion:GetVertexColor())" I can see that it changes if I gain or loose threat. Just the hook doesn't fire. :/

If I call SetVertexColor in the function myself the hook fires correctly. How the heck is this possible? Can the vertexcolor of a texture be changed without SetVertexColor beiing used? I don't want to create an onUpdate script just to track the threat status this is dumb. :/
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 10-22-10 at 02:17 AM.