Thread Tools Display Modes
10-07-10, 09:37 AM   #1
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
How to add Party frames to oUF? :)

Hello, does anyone know how to add party frames?

Code:
local function partylayout(self, unit)
	self.menu = menu
	self:RegisterForClicks('AnyUp')
	self:SetScript('OnEnter', UnitFrame_OnEnter)
	self:SetScript('OnLeave', UnitFrame_OnLeave)
	self:SetAttribute('*type2', 'menu')
	self:SetAttribute('initial-height', 38)
	self:SetAttribute('initial-width', 42)
	
	CreateBorder(self, 11, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4)

	self:SetBackdrop({bgFile = [=[Interface\ChatFrame\ChatFrameBackground]=], insets = {top = -1.5, left = -1.5, bottom = -1.5, right = -1.5}})
	self:SetBackdropColor(0, 0, 0, 0.8)
etc..


Code:
local party = oUF:SpawnHeader(nil, nil, 'party',
	'showParty', true,
	'xoffset', 12,
	'yOffset', -5,
	'point', 'LEFT',
	'maxColumns', 12,
	'unitsPerColumn', 5,
	'columnSpacing', 12,
	'columnAnchorPoint', 'TOP'
)
party:SetPoint('TOPLEFT', UIParent, 10, -8)
Code:
oUF:RegisterStyle('AftermathhParty', Partylayout)
oUF:SetActiveStyle('AftermathhParty'))
Does it work this way?
  Reply With Quote
10-08-10, 02:56 AM   #2
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Nvm, fixed it anyways
  Reply With Quote
10-08-10, 05:41 AM   #3
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Why would you fix it and not post the result? This leaves eveyone looking into this clueless.

This is like:
"I need help..."
"Ok, I got it but I'm not telling you."
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
10-08-10, 10:53 AM   #4
Petrah
A Pyroguard Emberseer
 
Petrah's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2008
Posts: 2,988
Originally Posted by Game92 View Post
Nvm, fixed it. Neener neener neener, not tellin how!

^^ Fixed ^^
__________________
♪~ ( ) I My Sonos!
AddOn Authors: If your addon spams the chat box with "Addon v8.3.4.5.3 now loaded!", please add an option to disable it!
  Reply With Quote
10-08-10, 04:58 PM   #5
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 268
I've noticed he does that quite a lot on this threads.

Probably he haven't grasped the concept of a forum. Your doubt might be the doubt of more people, if you put here the solution they won't have to look further, turning your question into valuable help.
__________________
My oUF Layout: oUF Lumen
  Reply With Quote
10-09-10, 09:04 AM   #6
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Here is a pic sorry guys i normally post a pic





and here if you wanna peek in to the LUA

http://pastebin.com/zgvXMUa9

Last edited by Aftermathhqt : 10-09-10 at 09:17 AM.
  Reply With Quote
10-09-10, 04:09 PM   #7
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
The earth just has moved.
...
A bit.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
10-10-10, 01:42 AM   #8
Luzzifus
A Warpwood Thunder Caller
 
Luzzifus's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 94
Originally Posted by zork View Post
The earth just has moved.
...
A bit.
Like it always does?^^
  Reply With Quote
10-10-10, 08:33 AM   #9
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
There's this movie, "The day the earth stood still".

So, no ... not always!!!1
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote
10-10-10, 08:39 AM   #10
Nobgul
A Molten Giant
 
Nobgul's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 693
Are u gonna release your unit frames?

They would fit in you my UI nicely.
__________________
[SIGPIC][/SIGPIC]
  Reply With Quote
10-15-10, 09:06 AM   #11
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Yes i will, when i get 1.5 to work.. :/
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » How to add Party frames to oUF? :)


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