Equpped Item stat change
I would like to extract the compared item stats that appear in the tooltip when holding shift and hovering over an item in your bag (either through macro or addon). Is there an easy way to get these?
|
After doing some digging it looks like the only event that comes remotely close to firing is the:
MODIFIER_STATE_CHANGED Unfortunately this happens everytime the shift key is pressed and has nothing to do with mousing over items. I don't know yet how to hook functions to grab when the equipped item compare window is shown and I can't seem to find anything in the API reference associated with it (admittedly I'm quite novice at this). Is there some global variable that stores this comparison info? can I use the GetItemInfo() function somehow? Any/all help is greatly appreciated, I will continue to dig...but it is going painfully slow. Even some example code that does something similar might give me a good jump start on this. |
You need to look into the OnEnter handler for the button you're hovering over.
I think the tooltip population is all done in C code though. Most of the stock text in tooltips are. |
Thanks, I found the ACE libraries and life is easy again.
|
I have no idea how any Ace3 libraries have anything to do with extracting stats from tooltips.
I'd suggest hooking the OnShow script for the compare tooltips instead of listening for the modifier change event:
|
All times are GMT -6. The time now is 08:31 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI