Unless I'm missing it, i couldn't display the group numbers next to the names, like in the old praid. Since we assign buffers to groups, this was important. So I added this to the end of perfectraid.lua
function PerfectRaid:GetRaidGroupNumber(unitName)
for count=0,GetNumRaidMembers() do
local name, rank, subgroup, level, class, fileName, zone, online, isDead, role, isML = GetRaidRosterInfo(count)
if unitName == name then
return subgroup
end
end
end
and then changed
frame.name:SetText(self:GetColoredName(unit))
to
frame.name:SetText(PerfectRaid:GetRaidGroupNumber(UnitName(unit)) .. self:GetColoredName(unit) )
So the group number appears first. If I add it after the name, and the name is too long, you won't see the group number.
|