View Single Post
04-19-24, 09:16 PM   #7
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,327
Something I noticed is HelpTip:Show() calls HelpTipTemplateMixin:Init() on the acquired frame.

Lua Code:
  1. hooksecurefunc(HelpTipTemplateMixin,"Init",function(self,parent,info,relregion)
  2.     if info.system=="MicroButtons" then
  3.         info.targetPoint=HelpTip.Point.BottomEdgeCenter;
  4.         self:AnchorAndRotate();
  5.     end
  6. end);

This hooks into the initialization of the acquired frame. HelpTipTemplateMixin:AnchorAndRotate() is called again as it's in charge of applying the setting. This is called from HelpTipTemplateMixin:OnUpdate(), but that's only registered to run in specific circumstances.
__________________
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)
  Reply With Quote