View Single Post
02-05-21, 08:28 AM   #6
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,929
Originally Posted by Platine View Post
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:
  1. function NPE_TutorialPointerFrame:_GetFrame(parentFrame)
  2.     local frame;
  3.     if (#self.FramePool > 0) then
  4.         frame = table.remove(self.FramePool);
  5.     else
  6.         self.FrameCount = self.FrameCount + 1;
  7.         frame = CreateFrame("frame", "NPE_PointerFrame_" .. self.FrameCount, UIParent, "TutorialPointerFrame");
  8.     end
  9.     if (not parentFrame.hasHookedScriptsForNPE) then
  10.         parentFrame:HookScript("OnShow", function (self)
  11.             if (self.currentNPEPointer) then
  12.                 self.currentNPEPointer:Show();
  13.             end
  14.         end);
  15.         parentFrame:HookScript("OnHide", function (self)
  16.             if (self.currentNPEPointer) then
  17.                 self.currentNPEPointer:Hide();
  18.             end
  19.         end);
  20.         parentFrame.hasHookedScriptsForNPE = true;
  21.     end
  22.     parentFrame.currentNPEPointer = frame;
  23.     frame.currentTarget = parentFrame;
  24.     return frame;
  25. 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.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote