Originally Posted by SDPhantom
I could be wrong, but don't the PartyX UnitIDs point to raid members in your group?
|
Yeah, they do. But the main issue here is that if you don't filter the header, then it's gonna start from index 1, and it will always show the first party while in raid.
I managed to hack in to the initialConfigFunction like this:
Lua Code:
self.header:SetAttribute("initialConfigFunction", [[
local header = self:GetParent()
self:SetAttribute("unit", "party"..strmatch(self:GetName(), "UnitButton(%d)"))
self:SetFrameStrata("Low")
self:SetHeight(header:GetAttribute("style-height"))
self:SetWidth(header:GetAttribute("style-width"))
self:SetScale(header:GetAttribute("style-scale"))
self:SetAttribute("maxColumns", 1)
self:SetAttribute("unitsPerColumn", 5)
self:SetAttribute("toggleForVehicle", true)
self:SetAttribute("*type1", "target")
self:SetAttribute("type2", "togglemenu")
self:SetAttribute("isHeaderDriven", true)
header:CallMethod("initialConfigFunction", self:GetName())
]])
I'm just not sure how valid is this solution, still testing.
The main goal would be to properly show the player's party when in raid too.