View Single Post
12/20/15, 01:12 PM   #5
SnowmanDK
 
SnowmanDK's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 161
Originally Posted by Wandamey View Post
or you could recount your stack right before displaying the tooltip with a Prehook "OnShow" ? what are the chances for the tooltip to be already on screen while the baits are depleted?

ZO_PreHook(yourtooltip, "OnShow", yourupdatefunc)

If your tooltip is personalized it would restrain the number of calls for sure.


(whoops forgot to say hi!)

actually it would be even savier do it on map display as you tried, but for that you should look at the SCENES functions, I can't tell exactly for this.
I think I'll check out your suggestions.
Even though EVENT_INVENTORY_SINGLE_SLOT_UPDATE works, and I did set it to only update when a bait stack changes, then it causes a small lag every time it updates, eg. you pick up bait or move/use bait. Not critical, but still...
  Reply With Quote