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 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 |
--Layout consts, defining the widths of the list's columns as provided by design--
ZO_GAMEPAD_GROUP_LIST_USER_FACING_NAME_WIDTH = 350 - ZO_GAMEPAD_INTERACTIVE_FILTER_LIST_HEADER_DOUBLE_PADDING_X
ZO_GAMEPAD_GROUP_LIST_CHARACTER_NAME_WIDTH = 240 - ZO_GAMEPAD_INTERACTIVE_FILTER_LIST_HEADER_DOUBLE_PADDING_X
ZO_GAMEPAD_GROUP_LIST_ZONE_WIDTH = 270 - ZO_GAMEPAD_INTERACTIVE_FILTER_LIST_HEADER_DOUBLE_PADDING_X
ZO_GAMEPAD_GROUP_LIST_ROLES_WIDTH = 125 - ZO_GAMEPAD_INTERACTIVE_FILTER_LIST_HEADER_DOUBLE_PADDING_X
local SORT_KEYS =
{
[ "displayName" ] = { } ,
[ "characterName" ] = { } ,
[ "formattedZone" ] = { tiebreaker = "displayName" } ,
[ "class" ] = { tiebreaker = "displayName" } ,
[ "championPoints" ] = { tiebreaker = "displayName" , isNumeric = true } ,
[ "level" ] = { tiebreaker = "championPoints" , isNumeric = true } ,
[ "status" ] = { tiebreaker = "displayName" , isNumeric = true } ,
}
----------------------------------
--Group List Gamepad
----------------------------------
end
--If we removed our created group listing while in this list, we need to refresh the keybinds
end
end
EVENT_MANAGER : RegisterForEvent ( "GroupList_Gamepad" , EVENT_GROUP_FINDER_REMOVE_GROUP_LISTING_RESULT , OnGroupListingRemoved )
end
-- My Listing
local myGroupListingKeybind =
{
end ,
end ,
}
end
return function ( )
end
end
displayNameControl : SetText ( zo_iconTextFormat ( "EsoUI/Art/UnitFrames/Gamepad/gp_Group_Leader.dds" , 32 , 32 , ZO_FormatUserFacingDisplayName ( data . displayName ) ) )
end
healIcon : SetAlpha ( data . isHeal and ZO_GAMEPAD_ICON_SELECTED_ALPHA or ZO_GAMEPAD_ICON_UNSELECTED_ALPHA )
tankIcon : SetAlpha ( data . isTank and ZO_GAMEPAD_ICON_SELECTED_ALPHA or ZO_GAMEPAD_ICON_UNSELECTED_ALPHA )
end
end
end
end
--Do nothing, because group list doesn't use a tooltip like other social lists
end
local ROW_ENTRY_PAUSE_TIME_MS = 100
local narration = { }
if entryData then
--Indicate that this entry is the group leader
if entryData . leader then
table . insert ( narration , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( GetString ( SI_GROUP_MENU_NARRATION_GROUP_LEADER ) ) )
end
if entryData . displayName then
local narrationStrings = { ZO_GetPlatformAccountLabel ( ) , ZO_FormatUserFacingDisplayName ( entryData . displayName ) }
table . insert ( narration , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( narrationStrings , ROW_ENTRY_PAUSE_TIME_MS ) )
end
if not hideCharacterFields then
--Narrate the selected role icon
if entryData . selectedRole and entryData . selectedRole ~= LFG_ROLE_INVALID then
local narrationStrings = { GetString ( SI_GROUP_LIST_PANEL_ROLES_HEADER ) , GetString ( "SI_LFGROLE" , entryData . selectedRole ) }
table . insert ( narration , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( narrationStrings , ROW_ENTRY_PAUSE_TIME_MS ) )
end
end
end
return narration
end
----------------------------------
-- ZO_SocialOptionsDialogGamepad--
----------------------------------
end
self : AddOptionTemplate ( groupingId , BuildTravelToGroupPlayerOption , ZO_SocialOptionsDialogGamepad . SelectedDataIsLoggedIn )
self : AddOptionTemplate ( groupingId , ZO_SocialOptionsDialogGamepad . BuildWhisperOption , ZO_SocialOptionsDialogGamepad . ShouldAddWhisperOption )
return IsGroupModificationAvailable ( ) and not DoesGroupModificationRequireVote ( ) and IsUnitGroupLeader ( "player" ) and not self : SelectedDataIsPlayer ( )
end
return IsGroupModificationAvailable ( ) and DoesGroupModificationRequireVote ( ) and not self : SelectedDataIsPlayer ( )
end
end
end
self : AddOptionTemplate ( groupingId , GroupList_Gamepad . BuildPromoteToLeaderOption , ShouldAddPromoteOption )
self : AddOptionTemplate ( groupingId , GroupList_Gamepad . BuildVoteKickMemberOption , CanVoteForKickMember )
self : AddOptionTemplate ( groupingId , ZO_SocialOptionsDialogGamepad . BuildAddFriendOption , ZO_SocialOptionsDialogGamepad . ShouldAddFriendOption )
self : AddOptionTemplate ( groupingId , ZO_SocialOptionsDialogGamepad . BuildVisitPlayerHouseOption , CanJumpToPlayerHouse )
self : AddOptionTemplate ( groupingId , ZO_SocialOptionsDialogGamepad . BuildInviteToTributeOption , ZO_SocialOptionsDialogGamepad . SelectedDataIsLoggedIn )
end
end
end
end
end
BeginGroupElection ( GROUP_ELECTION_TYPE_KICK_MEMBER , ZO_GROUP_ELECTION_DESCRIPTORS . NONE , self . socialData . unitTag )
end
end
-------------
--XML calls--
-------------
end |