Thread Tools Display Modes
Prev Previous Post   Next Post Next
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,356
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
 

WoWInterface » PTR » PTR API and Graphics Changes » hooksecurefunc framepools ... is it possible?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off