1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
--------------------------------------
--Group List Manager
--------------------------------------
GROUP_LIST_MANAGER = nil
return manager
end
end
-- During group invitation, we can receive a lot of event spam at once on a single invite when the
-- involved players are at the same location. Add a delay so we only refresh once in cases like this.
end
end
end
end
end
end
end
end
if ( wasLocalPlayer ) then
end
end
--EVENT_UNIT_CREATED will handle the major logic, this is just for the sound
end
EVENT_MANAGER : RegisterForEvent ( "ZO_GroupList_Manager" , EVENT_UNIT_CREATED , RegisterDelayedRefreshOnUnitEvent )
EVENT_MANAGER : RegisterForEvent ( "ZO_GroupList_Manager" , EVENT_UNIT_DESTROYED , RegisterDelayedRefreshOnUnitEvent )
EVENT_MANAGER : RegisterForEvent ( "ZO_GroupList_Manager" , EVENT_GROUP_MEMBER_JOINED , OnGroupMemberJoined )
EVENT_MANAGER : RegisterForEvent ( "ZO_GroupList_Manager" , EVENT_CHAMPION_POINT_UPDATE , RefreshOnUnitEvent )
EVENT_MANAGER : RegisterForEvent ( "ZO_GroupList_Manager" , EVENT_GROUP_MEMBER_ROLE_CHANGED , RegisterDelayedRefreshOnUnitEvent )
EVENT_MANAGER : RegisterForEvent ( "ZO_GroupList_Manager" , EVENT_GROUP_MEMBER_CONNECTED_STATUS , RefreshOnUnitEvent )
EVENT_MANAGER : RegisterForEvent ( "ZO_GroupList_Manager" , EVENT_PLAYER_ACTIVATED , RegisterDelayedRefresh )
EVENT_MANAGER : RegisterForEvent ( "ZO_GroupList_Manager" , EVENT_GROUP_MEMBER_ACCOUNT_NAME_UPDATED , RefreshData )
end
if unitTag then
local isDps = selectedRole == LFG_ROLE_DPS
local isHeal = selectedRole == LFG_ROLE_HEAL
local isTank = selectedRole == LFG_ROLE_TANK
local status = unitOnline and PLAYER_STATUS_ONLINE or PLAYER_STATUS_OFFLINE
{
index = i ,
unitTag = unitTag ,
rawCharacterName = rawCharacterName ,
formattedZone = zoneName ,
isDps = isDps ,
isHeal = isHeal ,
isTank = isTank ,
displayName = displayName ,
status = status ,
hasCharacter = true ,
isGroup = true ,
}
end
end
end
--Globals
do
if groupIndex and groupIndex >= 1 and groupIndex <= GROUP_SIZE_MAX then
else
end
end , } )
return groupUnitTags [ unitTag ] ~= false
end
return groupUnitTags [ unitTag ] or nil
end
local groupIndices = { }
return groupIndices [ groupIndex ]
end
for i = 1 , GROUP_SIZE_MAX do
groupIndices [ i ] = "group" .. i
end
end |