View Single Post
09-04-15, 07:03 PM   #4
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
You could put this below your UnitSpecific code


Code:
-- raid, party
do
	UnitSpecific.party = function(self, ...)
		Shared(self, ...)

		-- your party stuff here	

	end
	
	UnitSpecific.raid = function(self, ...)
		Shared(self, ...)

		-- your raid stuff here
		
	end
end

spawn them ...

Code:
oUF:Factory(function(self)
	
	-- spawn party
	self:SetActiveStyle'YOUROUFLAYOUT - Party'
	local party = self:SpawnHeader('oUF_Party', nil, 'custom  [group:party,nogroup:raid][@raid6,noexists,group:raid] show;hide', 	
		'showParty', true, 
		--'showPlayer', true, 
		'yOffset', -10, 
		'template', 'oUF_SlimRaid',	-- party pets
		'oUF-initialConfigFunction', ([[
			self:SetWidth(%d)
			self:SetHeight(%d)
    ]]):format(WIDTH, HEIGHT))
	party:SetScale(YOURScale)
	party:SetPoint("TOPLEFT", player, "BOTTOMLEFT", 0, -40)
end
	
	-- spawn raid
	self:SetActiveStyle"YOUROUFLAYOUT - Raid"
	local raid = self:SpawnHeader('oUF_Raid', nil, 'raid',			
	'showRaid', true, 	
	'showPlayer', true,
	'groupFilter', '1,2,3,4,5',
	'groupingOrder', '1,2,3,4,5',
	'groupBy', 'GROUP',
	'maxColumns', 5,
	'unitsPerColumn', 5,
	'column', 4,
	'columnAnchorPoint', "RIGHT",
	'columnSpacing', 6,
	'yOffset', -6,
	'oUF-initialConfigFunction', ([[
			self:SetWidth(%d)
			self:SetHeight(%d)
    ]]):format(WIDTH, HEIGHT))
	raid:SetScale(YOURScale)
	raid:SetPoint("TOPLEFT", UIParent, "TOPLEFT", 30, -30)	
end

Obviously, all that stuff in the spawn function is custom code. You have to change it to whatever you want your group frames to look like.

€: The raid code is for a 25 man raid, btw.
__________________
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..."


Last edited by Dawn : 09-04-15 at 07:05 PM.
  Reply With Quote