Thread Tools Display Modes
01-31-11, 05:55 AM   #1
Feroxine
Guest
Posts: n/a
Party & Combo Points

Just a couple of quick questions with regards to modifying the code to alter a couple of setttings:

- Would it be possible to hide the party/party pet frames?

- Would it be possible to move the combo point display for feral druids so they appear in the centre of the target bar as opposed to adjacent to it?

Both of the above questions relate to oUF_Phanx.
  Reply With Quote
01-31-11, 07:59 AM   #2
Feroxine
Guest
Posts: n/a
Not entirely sure if there's a more elegant solution but I managed to get rid of the frames I didn't want by changing the width to 0.0.

Still not entirely sure about the combo point issue, though.
  Reply With Quote
01-31-11, 08:58 AM   #3
Mischback
A Cobalt Mageweaver
 
Mischback's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 221
This is the oUF-forum...

oUF is a framework and does nothing by itsself, so you will have to tell us, which layout you're using...

And yes, both would be possible:
a) simple not spawn those frames
b) modify the SetPoint()-call
__________________
  Reply With Quote
01-31-11, 02:47 PM   #4
Feroxine
Guest
Posts: n/a
Originally Posted by Mischback View Post
oUF is a framework and does nothing by itsself, so you will have to tell us, which layout you're using...
Originally Posted by Feroxine View Post
Both of the above questions relate to oUF_Phanx.

Quoted for your convenience
  Reply With Quote
01-31-11, 09:38 PM   #5
Akkorian
A Flamescale Wyrmkin
 
Akkorian's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 111
Hi Feroxine,

I’m maintaining oUF_Phanx for now, so I can answer your questions.

Originally Posted by Feroxine View Post
Would it be possible to hide the party/party pet frames?
Sure! The easiest way is probably to to remove those units from the “uconfig” table in the “config.lua” file, or just comment them out.

Originally Posted by Feroxine View Post
Would it be possible to move the combo point display for feral druids so they appear in the centre of the target bar as opposed to adjacent to it?
Combo points are positioned with this line:

Code:
		self.ComboPointsText:SetPoint( "BOTTOMRIGHT", self.Health, "BOTTOMLEFT", -10, config.height * config.powerHeight - 6 )
Currently, that’s line 646 in the “core.lua” file. To put the combo points in the middle of the target frame, you’d want to change the line to look like this:

Code:
		self.ComboPointsText:SetPoint( "CENTER", self, "CENTER", 0, 0 )
To move it up or down, you’d change the second zero. Positive numbers are up, and negative numbers are down.

Let me know if you need any more help!
__________________
“Be humble, for you are made of earth. Be noble, for you are made of stars.”
  Reply With Quote
02-08-11, 08:54 AM   #6
mojosdojo
A Murloc Raider
 
mojosdojo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 5
What I do with oUF_Phanx: What Akkorian said, I commented out the party config stuff. But this does not prevent the original blizz frames from showing. To hide them, do something like this:
Code:
do
	local onShow = function(f) f:Hide() end
	for i = 1, 4 do
		local frame = _G["PartyMemberFrame"..i]
		frame:UnregisterAllEvents()
		frame:SetScript("OnShow", onShow)
		frame:Hide()
		-- print("Hiding PartyMemberFrame"..i)
	end
end
  Reply With Quote
02-08-11, 11:40 AM   #7
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Or you could just do:
Lua Code:
  1. oUF:DisableBlizzard'party'
__________________
「貴方は1人じゃないよ」
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Party & Combo Points


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