Originally Posted by Lombra
Can you not move the entire StanceBar instead?
|
Hmm, came up with this and it actually seems to work nicely
lua Code:
if (GetNumShapeshiftForms() == 1) then
StanceBarFrame:SetMovable(true)
StanceBarFrame:SetUserPlaced(true)
StanceButton1:HookScript('OnDragStop', function(self)
local point, relativeTo, relativePoint, xOffset, yOffset = self:GetPoint()
StanceBarFrame:ClearAllPoints()
-- 12 and 3 is to offset for StanceButton1's relative position towards StanceBarFrame
StanceBarFrame:SetPoint(point, relativeTo, relativePoint, xOffset - 12, yOffset - 3)
end)
end