Originally Posted by Vladinator
This is how I would do it:
1. /fstack and turn on showing the name of frames when you mouse over stuff.
2. Mouse over the frame you wish to move and write it's name down
3. Mouse over the frame you wish to anchor something to and write it's name down
4. /run local a,b=FrameA,FrameB a:ClearAllPoints() a:SetPoint("TOPLEFT", b, "TOPLEFT", 0, 0)
You may have to play around a bit, the documentation of "SetPoint" is http://www.wowpedia.org/API_Region_SetPoint and it may help if you are stuck on what values for "TOPLEFT" there are and what the different stuff mean.
|
ok, I've got it semi worked out. Reloading my UI resets it obviously. Is there a way to set this in lua within the cooldown mod so I don't have to type this in/press a macro on every reload?
This is what I have right now
/run local a,b=vlakCooldownsAnchor,oUF_Raid a:ClearAllPoints() a:SetPoint("TOP", b, "TOP", 15, 70)
Code:
local anchor = CreateFrame("Frame", "vlakCooldownsAnchor", UIParent)
anchor:SetHeight(size)
anchor:SetPoint("BOTTOM", UIParent, "BOTTOM", xpos, ypos)
is the anchor code within VlakCooldowns. I tried using:
Code:
anchor:ClearAllPoints()
anchor:SetPoint("TOP", oUF_Raid, "TOP", 15, 70)
but thats not setting the anchor correctly for some reason