Sorry for the topic digging... but I was searching for topics related to SecureGroupPetHeaderTemplate.
I used to spawn my layout Party Pets using a XML, that is commonly used.
But I wanted to try to spawn them in the lua instead of XML, the reason is to make it easier to disable them if wanted.
Anyway, I'm spawning them with this:
Code:
if cfg.show_Party_Pets then
self:SetActiveStyle('lumen - Group')
---local pets = oUF:SpawnHeader('oUF_PartyPets', 'SecureGroupPetHeaderTemplate', "custom [group:party,nogroup:raid][@raid6,noexists,group:raid] show;hide",
local pets = oUF:SpawnHeader('oUF_PartyPets', 'SecureGroupPetHeaderTemplate', "solo", "showSolo", true, -- debug
"showParty", cfg.show_Party,
"xoffset", 7,
"columnSpacing", 7,
"point", "LEFT",
"oUF-initialConfigFunction", ([[
self:SetWidth(%d)
self:SetHeight(%d)
self:SetScale(%d)
]]):format(cfg.party_pets_width, cfg.party_pets_height, cfg.scale))
pets:SetPoint("TOPLEFT", "oUF_Party", "BOTTOMLEFT", 0, -6)
end
Working great. The only problem is they are inheriting all the styling from the Party style.
How can I target the Pet Frames to style them? Since I'm not using the xml and not setting an suffix atribute I can't target them that way.
Any way to do this?