View Single Post
02-23-12, 12:08 AM   #4
dbaaf
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Jan 2012
Posts: 18
Originally Posted by p3lim View Post
As far as I know, you can move any of the default unitframes by rightclicking them and choosing move frame from the dropdown.
AFAIK it just works for Player/Target/Focus.


Originally Posted by Phanx View Post
Also, once you move party1 to where you want it, you can move all the others by positioning them relative to party1:

Code:
for i = 2, 4 do
    local f = _G["PartyMemberFrame"..i]
    f:ClearAllPoints()
    f:SetPoint("BOTTOMLEFT", _G["PartyMemberFrame"..(i-1)], "TOPLEFT", 0, 20)
end
... will attach party2-party4's bottom left corner to the previous party frame's top left corner, with an vertical spacing of 20. Adjust spacing as needed.

Code:
local movePartyFrames = true

if movePartyFrames == true then
		for i = 2, 4 do
    	local f = _G["PartyMemberFrame"..i]
    	f:ClearAllPoints()
    	PartyMemberFrame1:ClearAllPoints()
    	PartyMemberFrame1:SetPoint("CENTER", -400,50)
    	f:SetPoint("BOTTOMLEFT", _G["PartyMemberFrame"..(i-1)], "TOPLEFT", 0, 20)
	end
end
its working now, thanks Phanx !
__________________

Last edited by dbaaf : 02-23-12 at 12:24 AM.
  Reply With Quote