Originally Posted by ForeverTheGM
... it would certainly be nice if Blizzard decided to add support for the TANK, HEALER, and DAMAGER roles in the secure group headers.
|
Indeed. Well, if you wanted to put some effort into it, you could work around the issue by setting your header's
sortMethod attribute to "NAMELIST", setting its
nameList attribute to a comma-separated list of group members, registering for the PLAYER_ROLES_ASSIGNED event, checking the return value from UnitGroupRolesAssigned for each party member, and then changing the
nameList attribute so that the tank is listed first, followed by the healer, followed by the DPS. Obviously you wouldn't be able to update the order while in combat, but I don't think people are generally reassigning roles in combat anyway.
Note that I haven't actually tried this, but Blizzard's own documentation in
SecureGroupHeaders.lua suggests that you can use
nameList to specify a custom sort order.