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 |
------------------
-- Guild Finder --
------------------
ZO_GUILD_BROWSER_GUILD_LIST_GAMEPAD_ENTRY_HEIGHT = 240
ZO_GuildBrowser_GuildList_Gamepad = ZO_Object . MultiSubclass ( ZO_GuildBrowser_GuildList_Shared , ZO_GuildFinder_Panel_GamepadBehavior , ZO_SortFilterList_Gamepad )
end
ZO_SortFilterList_Gamepad . Initialize ( self , control , "ZO_GamepadInteractiveSortFilterThickHighlight" )
ZO_ScrollList_AddDataType ( self . list , ZO_GUILD_BROWSER_GUILD_LIST_ENTRY_TYPE , "ZO_GuildBrowser_GuildList_Row_Gamepad" , ZO_GUILD_BROWSER_GUILD_LIST_GAMEPAD_ENTRY_HEIGHT , function ( control , data ) self : SetupRow ( control , data ) end )
end
-- select
{
if selectedData then
end
end ,
}
)
-- filters dialog
{
local dialogName = "GAMEPAD_GUILD_BROWSER_FILTERS"
end ,
}
)
-- report
{
if selectedData then
end
ZO_HELP_GENERIC_TICKET_SUBMISSION_MANAGER : OpenReportGuildTicketScene ( selectedData . guildName , CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_GUILD_CATEGORY_INAPPROPRIATE_LISTING , ReportCallback )
end
end ,
}
)
end
if # scrollData == 0 then
--If the cursor is in the list, but the list is empty because of a filter, we need to force it out of the panel area
else
-- if we've lost our selection and the panelFocalArea is active, then we want to
-- AutoSelect the next appropriate entry
if not selectedData then
local ANIMATE_INSTANTLY = true
end
end
end
end
control . guildSizeHeaderLabel : SetText ( GetString ( "SI_GUILDMETADATAATTRIBUTE" , GUILD_META_DATA_ATTRIBUTE_SIZE ) )
end
end
end
end
end
control . guildContextualInfoValueLabel : SetText ( zo_strformat ( SI_GAMEPAD_GUILD_BROWSER_GUILD_LIST_CONTEXTUAL_INFO_FORMATTER , contextualInfoValue ) )
end
end
end
end
end
end
end
if self . focusType == nil or ( # scrollData <= 0 and GUILD_BROWSER_MANAGER : HasCurrentFoundGuilds ( ) ) then
end
end
end
--Overridden from base
return SCREEN_NARRATION_MANAGER : CreateNarratableObject ( GetString ( SI_GAMEPAD_GUILD_BROWSER_GUILD_LIST_HEADER ) )
end
--Overridden from base
if selectedData then
local narrations = { }
--Generate the narration for the alliance
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( ZO_CachedStrFormat ( SI_ALLIANCE_NAME , GetAllianceName ( selectedData . alliance ) ) ) )
--Generate the narration for the guild name
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( selectedData . guildName ) )
--Generate the narration for the active members
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( GetString ( "SI_GUILDMETADATAATTRIBUTE" , GUILD_META_DATA_ATTRIBUTE_SIZE ) ) )
--Generate the contextual info narration
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( contextualInfoHeader ) )
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( contextualInfoValue ) )
--Generate the narration for the guild message
ZO_AppendNarration ( narrations , SCREEN_NARRATION_MANAGER : CreateNarratableObject ( selectedData . headerMessage ) )
return narrations
end
end
-- XML Functions
-----------------
end |