WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Macro Help (https://www.wowinterface.com/forums/forumdisplay.php?f=140)
-   -   Equpped Item stat change (https://www.wowinterface.com/forums/showthread.php?t=50502)

hellfreeze 11-18-14 08:46 AM

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?

hellfreeze 11-18-14 01:20 PM

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.

SDPhantom 11-18-14 05:16 PM

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.

hellfreeze 11-18-14 06:13 PM

Thanks, I found the ACE libraries and life is easy again.

Phanx 11-18-14 10:14 PM

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:
  • ShoppingTooltip1
  • ShoppingTooltip2
  • ItemRefShoppingTooltip1
  • ItemRefShoppingTooltip2


All times are GMT -6. The time now is 02:13 AM.

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