View Single Post
10-25-10, 10:06 AM   #4
maltese
A Wyrmkin Dreamwalker
 
maltese's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 54
Originally Posted by Vladinator View Post
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

Last edited by maltese : 10-25-10 at 10:16 AM.
  Reply With Quote