Thread Tools Display Modes
02-22-12, 10:13 AM   #1
dbaaf
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Jan 2012
Posts: 18
Grow PartyFrames/ArenaEnemyFrames Upwards

Hello again,

is it possible to grow the PartyFrames and ArenaEnemyFrames upwards instead of downwards?

greez

edit:

made a graphic to explain
i simply want "yellow" instead of "red" :x




edit2:

got it :

Code:
	PartyMemberFrame1:ClearAllPoints()
		PartyMemberFrame1:SetPoint("CENTER",-400,50)

		PartyMemberFrame2:ClearAllPoints()
		PartyMemberFrame2:SetPoint("CENTER",-400,100)

		PartyMemberFrame3:ClearAllPoints()
		PartyMemberFrame3:SetPoint("CENTER",-400,150)

		PartyMemberFrame4:ClearAllPoints()
		PartyMemberFrame4:SetPoint("CENTER",-400,200)
not the way i actually wanted, but it works
__________________

Last edited by dbaaf : 02-22-12 at 12:31 PM.
  Reply With Quote
02-22-12, 04:18 PM   #2
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
As far as I know, you can move any of the default unitframes by rightclicking them and choosing move frame from the dropdown.
  Reply With Quote
02-22-12, 06:02 PM   #3
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
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.
  Reply With Quote
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

WoWInterface » Developer Discussions » Lua/XML Help » Grow PartyFrames/ArenaEnemyFrames Upwards


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off