hooksecurefunc framepools ... is it possible?
Another nUI one here, but it's not exactly a Beta issue as the functionality I need to access was set up in 8.3.
You know the alter window that pops up on your micro buttons ? Well, nUI has these buttons at the top of the screen meaning that this pop up is off the screen.. Now, before I managed to hook into a function and tell it to rearrange if the buttons are at the top of the screen. Lua Code:
Now the new system appears to make it somewhat easier .. https://www.townlong-yak.com/framexml/beta/HelpTip.lua https://www.townlong-yak.com/framexm...croButtons.lua Which means, all I need to do is somehow hook into the help tip info to rearrange the arrow like this : Lua Code:
Unfortunately HelpTip is now a framepool and I can't seem to figure out how to get access to the frame just acquired and shown so that I can rearrange the arrow. I've tried googling and searching the forums but no one seems to have asked the question before. Any help is appreciated .. |
Lua Code:
|
I'll give that a go .. it looked like Show had more options.
Will let you know how it pans out. Thanks .. it worked perfectly. Success: For those with similar issues ... This worked for me .. during the helptips onupdate routine it checks to see if any of the info values have changed and updates accordingly. From what I understand anyway. Lua Code:
|
How can I successfully hook into the HelpTip framepool and access the acquired frame to rearrange the arrow as shown in the provided Lua code?
|
That I haven't been able to do since Dragonflight came out. Their code keeps resetting it to what they want. The code I posted worked for me in Shadowlands but not Dragonflight. Which is awkward as nUI usually has the micro buttons at the top of the screen.
|
Just in case you didn't figure it out already
appears they changed the parameters This now works with nUI's top of the screen micromenu with the HelpTip showing below pointing up. As you can see in my case I test for the system to work with the ones I need to change. You might have to debug your way through to identify what system you are interested in. Lua Code:
|
Something I noticed is HelpTip:Show() calls HelpTipTemplateMixin:Init() on the acquired frame.
Lua Code:
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. |
All times are GMT -6. The time now is 10:43 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI