ESO Lua File v100012

ingame/group/groupmembers_shared.lua

[◄ back to folders ]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
GroupMembersManager_Shared = ZO_Object:Subclass()
function GroupMembersManager_Shared:New(control)
    local manager = ZO_Object.New(self)
    manager.control = control
    manager:Update(GetGroupSize())
    return manager
end
function GroupMembersManager_Shared:Update(groupSize)
    local maxGroupSize = (groupSize > SMALL_GROUP_SIZE_THRESHOLD) and GROUP_SIZE_MAX or SMALL_GROUP_SIZE_THRESHOLD
    local string = zo_strformat(SI_GROUP_LIST_PANEL_GROUP_MEMBERS_COUNT, groupSize, maxGroupSize)
    GetControl(self.control, "Count"):SetText(zo_strformat(SI_GROUP_LIST_PANEL_GROUP_MEMBERS_COUNT, groupSize, maxGroupSize))
end