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:
hooksecurefunc(
"MainMenuMicroButton_PositionAlert",
function(alert)
if ( alert.MicroButton:GetRight() + (alert:GetWidth() / 2) > UIParent:GetRight() ) then
alert:ClearAllPoints();
alert:SetPoint("TOPRIGHT", alert.MicroButton, "BOTTOMRIGHT", 16, -20);
alert.Arrow:ClearAllPoints();
alert.Arrow:SetPoint("BOTTOMRIGHT", alert, "TOPRIGHT", -4, -4);
else
alert:ClearAllPoints();
alert:SetPoint("TOP", alert.MicroButton, "BOTTOM", 0, -20);
alert.Arrow:ClearAllPoints();
alert.Arrow:SetPoint("BOTTOM", alert, "TOP", 0, -4);
end
end
)
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:
hooksecurefunc(HelpTip,"Show",
function(parent,info,button)
info.targetPoint = HelpTip.Point.BottomEdgeCenter
end
)
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 ..