Hello everyone. I have been chasing my tail on this one for too long now, I was wondering if perhaps anyone else has run into this? Or maybe just can see where I am going wrong.
I am wanting to do the following but for the Minimap Tracking Icon/Button.
Code:
MiniMapMailFrame:RegisterForDrag("LeftButton")
MiniMapMailFrame:SetClampedToScreen(true)
MiniMapMailFrame:SetMovable(true)
MiniMapMailFrame:SetScript("OnDragStart", function(self) if IsAltKeyDown() then self:StartMoving() end end)
MiniMapMailFrame:SetScript("OnDragStop", function(self) if IsAltKeyDown() then self:StopMovingOrSizing() end end)
This code works perfect for the mail icon. When I try it for the tracking Icon I have used the Frame name "MiniMapTracking", "MiniMapTrackingButton", and "MiniMapTrackingIcon"; "MiniMapTrackingButton" working the best, as though it does not move the whole frame it moves the part that is interactive.
Here's a screenshot of when I first mouseover it.
http://eddiemars.com/SStry3.jpeg
Now I am Alt clicking to drag it.
http://eddiemars.com/SStry2.jpeg
And Oh, Icon is so far away. SO then I try adding:
Code:
MiniMapTrackingIcon:SetPoint("BOTTOMLEFT", MiniMapTrackingButton)
And I then get this happening while alt + dragging:
http://eddiemars.com/SStry4.jpeg
This get's indefinitely bigger and smaller depending where it is dragged. I have tried a lot of different stuff to try and 'unhook' that corner to no avail... different anchor points, different combinations of frame name... Anyone have any ideas? Or maybe you know of an addon that seems to do this well I could check out for reference?
Thanks,
Eddie