View Single Post
10-17-10, 09:31 AM   #102
Elisios
A Murloc Raider
 
Elisios's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 5
By the way, the SecureGroupPetHeader seems to assign invalid pet unit ids (when both useOwnerUnit and filterOnPet are false), e.g. raidpetpet1 instead of raidpet1. A workaround consists in adding the following snippet when spawning the header :

Code:
oUF:SpawnHeader(name, template, visibility, 
	'oUF-initialConfigFunction', [[
		self:SetAttribute('refreshUnitChange', [=[
			local unit = self:GetAttribute('unit')
			if unit then
				unit = unit:gsub('petpet', 'pet')
				if unit ~= self:GetAttribute('unit') then
					self:SetAttribute('unit', unit)
				end
			end
		]=])
	]]
)
The "refreshUnitChange" attribute is called by the SecureGroupHeader when the header buttons are updated.
  Reply With Quote