Does this work for custom party spawns aswell or only for party that gets spawned without the visibility attribute (ergo: only using solo, party, raid)?
This is how I spawn my raid but it ignores the sorting whatsoever.
lua Code:
--cfg
attributes = {
visibility = "custom [@raid6,exists,group:raid] show;hide", --use "party,raid" to show this in party aswell
showPlayer = false, --make this true to show player in party
showSolo = false, --make this true to show while solo (only works if solo is in visiblity aswell
showParty = false, --make this true to show raid in party
showRaid = true, --show in raid
point = "TOP",
yOffset = 20,
xoffset = 0,
maxColumns = 8,
unitsPerColumn = 5,
columnSpacing = -20,
columnAnchorPoint = "LEFT",
},
--spawn raid
local raid = oUF:SpawnHeader(
"oUF_DiabloRaidHeader", --name
nil,
attr.visibility,
"showPlayer", attr.showPlayer,
"showSolo", attr.showSolo,
"showParty", attr.showParty,
"showRaid", attr.showRaid,
"point", attr.point,
"yOffset", attr.yOffset,
"xoffset", attr.xoffset,
"groupFilter", "1,2,3,4,5,6,7,8",
"groupBy", "GROUP",
"groupingOrder", "1,2,3,4,5,6,7,8",
"sortMethod", "NAME",
"maxColumns", attr.maxColumns,
"unitsPerColumn", attr.unitsPerColumn,
"columnSpacing", attr.columnSpacing,
"columnAnchorPoint", attr.columnAnchorPoint,
"oUF-initialConfigFunction", ([[
self:SetWidth(%d)
self:SetHeight(%d)
self:SetScale(%f)
]]):format(64, 64, cfg.units.raid.scale)
)
raid:SetPoint(cfg.units.raid.pos.a1,cfg.units.raid.pos.af,cfg.units.raid.pos.a2,cfg.units.raid.pos.x,cfg.units.raid.pos.y)