Originally Posted by
Tyratops
I think that is the anchor. So based on what Treeston said, having TOP and 0,0 would cause the image to be placed in the corner of your screen (0,0 is bottom left) and the anchor would set which direction the image goes from those coords. With this example it would force the image to go down from your coords as the anchor is the top, making it not visible. I think if you set it as MIDDLE 960,540 that would place the image directly in the centre of your screen on a 1920x1080 resolution.
I am only working on my logic though and based on how plently of addons work with their anchors this should work.
I hope that helps.
Not quite.
As the :SetPoint() documentation shows, the three-argument SetPoint call with offsets is merely an alias for the larger, five-argument call :SetPoint(point, parent, relativeTo, offX, offY), where parent = self:GetParent() and relativeTo = point.
So:
Code:
frame:SetPoint("TOP", -50, 0)
would place the center of the top edge of the frame 50 pixels below its' parent's center top edge, since it is equal to:
Code:
frame:SetPoint("TOP", frame:GetParent() or WorldFrame, "TOP", -50, 0)