Thread Tools Display Modes
11-18-14, 03:26 AM   #1
VincentSDSH
Non-Canadian Luzer!
 
VincentSDSH's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 350
Spell Overlay data table

Is there a resource for the current data table that feeds SPELL_ACTIVATION_OVERLAY_SHOW? I'm looking for the table that has the spell id, texture, positions, scale, rgb, etc. The alternative is to try to build it by hand in-game and...I can't say that I relish that task.

Any help would be most appreciated.
  Reply With Quote
11-18-14, 05:39 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,323
From what I see, the event fires with all data passed to the event handler. I guess you could parse through SpellActivationOverlayFrame.overlaysInUse. The keys are the SpellIDs and the values are arrays of active overlay frames. Looks like only the position and SpellID are stored. I guess you could pull the image path and RGB values from the texture. The scale would be tricky, trying to calculate from the size of the image with the hard-coded constants used based on position.

It may just be better to write your own caching method.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 11-18-14 at 05:47 PM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Spell Overlay data table


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