View Single Post
10-11-10, 01:38 AM   #36
tukz
A Fallenroot Satyr
 
tukz's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 20
@zork: don't know if it's the best way to do it but i made my party/raid spawning look like this:

example with my 3 groups raid file.

Code:
oUF:RegisterStyle('TukuiHealR01R15', Shared)
oUF:Factory(function(self)
	oUF:SetActiveStyle("TukuiHealR01R15")

	local raid = self:SpawnHeader("oUF_TukuiHealRaid0115", nil, "custom [@raid16,exists] hide;show", 
	'oUF-initialConfigFunction', [[
		local header = self:GetParent()
		self:SetAttribute('*type1', 'target')
		self:SetWidth(header:GetAttribute('initial-width'))
		self:SetHeight(header:GetAttribute('initial-height'))
		self:SetAttribute('toggleForVehicle', true)
		RegisterUnitWatch(self)
	]],
	'initial-width', TukuiDB.Scale(150*TukuiDB.raidscale),
	'initial-height', TukuiDB.Scale(32*TukuiDB.raidscale),	
	"showParty", true, "showPlayer", TukuiCF["unitframes"].showplayerinparty, "showRaid", true, "groupFilter", "1,2,3,4,5,6,7,8", "groupingOrder", "1,2,3,4,5,6,7,8", "groupBy", "GROUP", "yOffset", TukuiDB.Scale(-4))
	raid:SetPoint("TOPLEFT", UIParent, "TOPLEFT", 15, -300*TukuiDB.raidscale)
end)
At least, it's working fine for me.

Also, a note to haste, for element/vehicle.lua
Code:
self:SetAttribute('toggleForVehicle', true)
need to be changed, it taint UI while a new unit is entering raid and while we are in combat. I just commented this line in vehicle.lua for now.

Last edited by tukz : 10-11-10 at 01:45 AM.
  Reply With Quote