Originally Posted by Platine
This object is not pinned only to MicroButtons.
|
Next thought ..
https://www.townlong-yak.com/framexm...interFrame.xml
The layout of the PointerFrame appears to be the same as what you are showing and is part of the New Player Experience.
Looking at the lua code for it .. it works in a similar way to the Help System and you need to access it via the frame pool system my code demonstrated..
https://www.townlong-yak.com/framexm...interFrame.lua
Lua Code:
function NPE_TutorialPointerFrame:_GetFrame(parentFrame)
local frame;
if (#self.FramePool > 0) then
frame = table.remove(self.FramePool);
else
self.FrameCount = self.FrameCount + 1;
frame = CreateFrame("frame", "NPE_PointerFrame_" .. self.FrameCount, UIParent, "TutorialPointerFrame");
end
if (not parentFrame.hasHookedScriptsForNPE) then
parentFrame:HookScript("OnShow", function (self)
if (self.currentNPEPointer) then
self.currentNPEPointer:Show();
end
end);
parentFrame:HookScript("OnHide", function (self)
if (self.currentNPEPointer) then
self.currentNPEPointer:Hide();
end
end);
parentFrame.hasHookedScriptsForNPE = true;
end
parentFrame.currentNPEPointer = frame;
frame.currentTarget = parentFrame;
return frame;
end
Instead of HelpTip in my example try NPE_TutorialPointerFrame and put a message in the for loop instead of my code to see if it displays.