View Single Post
05/06/14, 06:38 AM   #7
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Keesi View Post
My question is how can I either detect when the InformationTooltip has closed (is there an event I'm missing)
You can hook ZO_Tooltip_OnCleared(tooltipControl) function to clear your modifications to the tooltip.

Originally Posted by Keesi View Post
...or is there some way that I can have it only work for my set of pins?
This will not be necessary - tooltip control is not destroyed when hidden, it is just cleared. So you really need to clear your modification by hooking the function above.
Lua Code:
  1. local pinType = pin.m_PinType
  2. local pinType = pin:GetPinType()
  3. local pinType, pinTag = pin:GetPinTypeAndTag()
  4. --use just one from above
  5.  
  6. if pinType == _G["myCustomPin"] then
  7.  --code
  8. end

Last edited by Garkin : 05/06/14 at 06:43 AM.
  Reply With Quote