Quantcast
WoWInterface - View Single Post - PerfectRaid 0.1.3-Beta FAQ
View Single Post
01-22-07, 11:21 PM   #41
Aflat
A Murloc Raider
Join Date: Jul 2006
Posts: 7
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.
  Reply With Quote