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 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 |
ZO_GAMEPAD_GROUP_FINDER_APPLICATIONS_LIST_LEVEL_WIDTH = 210 - ZO_GAMEPAD_INTERACTIVE_FILTER_LIST_HEADER_DOUBLE_PADDING_X
ZO_GAMEPAD_GROUP_FINDER_APPLICATIONS_LIST_ROLES_WIDTH = 140 - ZO_GAMEPAD_INTERACTIVE_FILTER_LIST_HEADER_DOUBLE_PADDING_X
ZO_GAMEPAD_GROUP_FINDER_APPLICATIONS_LIST_EXPIRES_WIDTH = 125 - ZO_GAMEPAD_INTERACTIVE_FILTER_LIST_HEADER_DOUBLE_PADDING_X
ZO_GAMEPAD_GROUP_FINDER_APPLICATIONS_LIST_CHAMPION_POINTS_ICON_OFFSET_X = 55
---------------------------------
-- Application List Focus Area --
---------------------------------
ZO_GroupFinder_ApplicationListScreen_Gamepad_FocusArea_ApplicationList = ZO_GamepadMultiFocusArea_Base : Subclass ( )
function ZO_GroupFinder_ApplicationListScreen_Gamepad_FocusArea_ApplicationList : HandleMovement ( horizontalResult , verticalResult )
--Pipe directional input through to the interactive sort filter list
return true
end
function ZO_GroupFinder_ApplicationListScreen_Gamepad_FocusArea_ApplicationList : HandleMovePrevious ( )
local consumed = false
end
return consumed
end
-----------------------------
-- Application List Screen --
-----------------------------
if newState == SCENE_FRAGMENT_SHOWING then
elseif newState == SCENE_FRAGMENT_HIDING then
end
end )
end
--Create the control pools for the listing
--Create the data object
self . myListingData = ZO_GroupListingUserTypeData : New ( GROUP_FINDER_GROUP_LISTING_USER_TYPE_CREATED_GROUP_LISTING )
--Use MOVEMENT_CONTROLLER_DIRECTION_HORIZONTAL instead of vertical so it doesn't interfere with the directional input for the screen as a whole
self . myListingFocus = ZO_GamepadFocus : New ( self . myListingControl , ZO_MovementController : New ( MOVEMENT_CONTROLLER_DIRECTION_HORIZONTAL ) )
local myListingFocusEntry =
{
end ,
end ,
}
end
{
-- Open Group Menu
{
end ,
} ,
}
ZO_Gamepad_AddBackNavigationKeybindDescriptors ( self . myListingDescriptor , GAME_NAVIGATION_TYPE_BUTTON , function ( ) GROUP_FINDER_GAMEPAD : ExitApplicationList ( ) end )
end
end
end
self . myListingArea = ZO_GamepadMultiFocusArea_Base : New ( self , MyListingActivateCallback , MyListingDeactivateCallback )
--Directional input is managed in this class instead of in the interactive sort filter list
local FOREGO_DIRECTIONAL_INPUT = true
end
end
self . applicationListArea = ZO_GroupFinder_ApplicationListScreen_Gamepad_FocusArea_ApplicationList : New ( self , ListActivateCallback , ListDeactivateCallback )
local DONT_ACTIVATE_FOCUS_AREA = false
end
end
end
EVENT_MANAGER : RegisterForEvent ( "GroupFinder_ApplicationListScreen_Gamepad" , EVENT_GROUP_FINDER_UPDATE_GROUP_LISTING_RESULT , OnUpdateGroupListingResult )
GROUP_FINDER_APPLICATIONS_LIST_MANAGER : RegisterCallback ( "ApplicationsListUpdated" , function ( ) self : RefreshApplications ( ) end )
end
end
ZO_GroupFinder_Shared . SetUpGroupListingFromData ( self . myListingControl , self . roleControlPool , self . myListingData , ZO_GROUP_LISTING_ROLE_CONTROL_PADDING_GAMEPAD )
else
end
end
end
end
--If the listing auto accepts requests, select the listing by default, otherwise select the application list
else
end
end
end
end
end
GROUP_FINDER_APPLICATION_LIST_SCREEN_GAMEPAD = ZO_GroupFinder_ApplicationListScreen_Gamepad : New ( control )
end
----------------------
-- Application List --
----------------------
local APPLICATION_DATA = 1
ZO_GroupFinder_ApplicationList_Gamepad = ZO_Object . MultiSubclass ( ZO_GamepadInteractiveSortFilterList , ZO_SocialOptionsDialogGamepad )
ZO_ScrollList_AddDataType ( self . list , APPLICATION_DATA , "ZO_GroupFinder_ApplicationListRow_Gamepad" , ZO_GAMEPAD_INTERACTIVE_FILTER_LIST_ROW_HEIGHT , function ( entryControl , entryData ) self : SetupRow ( entryControl , entryData ) end )
self : SetupSort ( GROUP_FINDER_APPLICATIONS_LIST_ENTRY_SORT_KEYS , "GetEndTimeSeconds" , ZO_SORT_ORDER_UP )
end
roleControl : SetAlpha ( role == assignedRole and ZO_GAMEPAD_ICON_SELECTED_ALPHA or ZO_GAMEPAD_ICON_UNSELECTED_ALPHA )
end
else
control . expiresLabel : SetText ( ZO_FormatTimeLargestTwo ( data : GetTimeRemainingSeconds ( ) , TIME_FORMAT_STYLE_DESCRIPTIVE_MINIMAL ) )
end
end )
end
{
{
if selectedData then
RequestResolveGroupListingApplication ( RESOLVE_GROUP_LISTING_APPLICATION_REQUEST_APPROVE , selectedData : GetCharacterId ( ) )
end
end ,
} ,
{
if selectedData then
RequestResolveGroupListingApplication ( RESOLVE_GROUP_LISTING_APPLICATION_REQUEST_REJECT , selectedData : GetCharacterId ( ) )
end
end ,
} ,
}
ZO_Gamepad_AddBackNavigationKeybindDescriptorsWithSound ( self . keybindStripDescriptor , GAME_NAVIGATION_TYPE_BUTTON , self : GetBackKeybindCallback ( ) )
local DEFAULT_CALLBACK = nil
self : AddSocialOptionsKeybind ( self . keybindStripDescriptor , DEFAULT_CALLBACK , "UI_SHORTCUT_TERTIARY" , GetString ( SI_GAMEPAD_OPTIONS_MENU ) )
-- Open Group Menu
local groupMenuKeybind =
{
end ,
}
end
--Overridden from base
self : AddOptionTemplate ( groupId , ZO_SocialOptionsDialogGamepad . BuildIgnoreOption , ZO_SocialOptionsDialogGamepad . SelectedDataIsNotPlayer )
end
--Overridden from base
if entryData then
local socialData =
{
}
end
end
--Overridden from base
-- No real filtering...just show everything in the master list
end
end
--Overridden from base
end
--Overridden from base
if selectedData then
end
end
--Overridden from base
end
--Overridden from base
return SCREEN_NARRATION_MANAGER : CreateNarratableObject ( GetString ( SI_GROUP_FINDER_APPLICATIONS_HEADER ) )
end
--Overridden from base
local narrations = { }
if entryData then
--Generate the user ID narration
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( ZO_GetPlatformAccountLabel ( ) ) )
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( entryData : GetFormattedDisplayName ( ) ) )
--Generate the character name narration
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( GetString ( SI_SOCIAL_LIST_PANEL_HEADER_CHARACTER ) ) )
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( entryData : GetCharacterName ( ) ) )
--Generate the class narration
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( GetString ( SI_GROUP_LIST_PANEL_CLASS_HEADER ) ) )
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( entryData : GetClassName ( ) ) )
--Generate the level narration
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( GetString ( SI_GAMEPAD_GROUP_FINDER_APPLICATION_LIST_HEADER_LEVEL ) ) )
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( ZO_GetLevelOrChampionPointsNarrationString ( entryData : GetLevel ( ) , entryData : GetChampionPoints ( ) ) ) )
--Generate the role narration
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( GetString ( SI_GROUP_LIST_PANEL_ROLES_HEADER ) ) )
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( GetString ( "SI_LFGROLE" , entryData : GetRole ( ) ) ) )
--Generate the expire time narration
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( GetString ( SI_GROUP_FINDER_APPLICATIONS_SORT_HEADER_EXPIRATION ) ) )
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( GetString ( SI_GROUP_FINDER_APPLICATION_PENDING ) ) )
else
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( ZO_FormatTimeLargestTwo ( entryData : GetTimeRemainingSeconds ( ) , TIME_FORMAT_STYLE_DESCRIPTIVE_MINIMAL ) ) )
end
end
return narrations
end
--------------
--Global XML
---------------
local roleControls =
{
}
end |