Originally Posted by Torhal
|
Yeah I did:
Originally Posted by ballagarba
3. Now I tried to save the position of StanceButton1 before StanceBar_Update() moves it, and do a hooksecurefunc('StanceBar_Update', ...) and move it back. Also taints, apparently, you can't do StanceButton1:ClearAllPoints() from inside that hook (WTF?):
lua Code:
local point, relativeTo, relativePoint, xOffset, yOffset = StanceButton1:GetPoint() hooksecurefunc('StanceBar_Update', function() if (GetNumShapeshiftForms() == 1) then StanceButton1:ClearAllPoints() StanceButton1:SetPoint(point, relativeTo, relativePoint, xOffset, yOffset) end end
|
However, I don't see how that would work seeing as when the hook runs I have no idea of knowing what StanceButton1 had for position before the original function (StanceBar_Update()) moved it. I could just move it, but the point is that I want it to be user placed, so I can't move it programmatically like that unless I could somehow fetch that information from layout-local.txt.