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 |
-- Mapping of link type to the text that appears for their associated "Use" keybind button.
local LINK_ACTION_NAMES =
{
}
-- Mapping of link type to the custom handler that is called when used;
-- the default handler is called for unmapped link types.
local LINK_ACTION_HANDLERS =
{
[ GUILD_LINK_TYPE ] = function ( link )
end ,
[ HELP_LINK_TYPE ] = function ( link )
if helpCategoryIndex and helpIndex then
end
end ,
}
-- Mapping of link type to a variable return function that receives a reference
-- to the calling ZO_GamepadLinks instance and returns any additional parameters
-- to be passed to GAMEPAD_TOOLTIPS:LayoutLink.
-- * Refer to ZO_GamepadLinks:Show() for additional information.
local LINK_LAYOUT_PARAMETER_FUNCTIONS =
{
[ HOUSING_LINK_TYPE ] = function ( gamepadLinks )
end ,
}
-- ZO_GamepadLinks presents one or more links' tooltips with carousel-style navigation and,
-- when appropriate, a customizable "Use" keybind for actionable links.
end
{
-- Use Link
{
return LINK_ACTION_NAMES [ linkData . linkType ]
end ,
-- Call the custom link handler.
return
end
-- Call the default link handler.
local NO_BUTTON = nil
LINK_HANDLER : FireCallbacks ( LINK_HANDLER . LINK_CLICKED_EVENT , linkData . link , NO_BUTTON , ZO_LinkHandler_ParseLink ( linkData . link ) )
end ,
return linkData ~= nil and LINK_ACTION_NAMES [ linkData . linkType ] ~= nil
end ,
} ,
-- Next Link
{
end ,
end ,
} ,
-- Previous Link
{
-- Name does not require localization because ethereal binds do not appear in the UI.
end ,
end ,
} ,
}
end
-- Order matters:
end
if replaceExistingLinks then
end
if not links then
-- Disregard a nil reference as a matter of convenience for the caller.
return
end
local addedLink = false
if link . link then
if GAMEPAD_TOOLTIPS [ linkHandlerName ] then
-- Add the validated link.
addedLink = true
end
end
end
if addedLink then
end
end
if replaceExistingLinks then
end
-- Disregard a nil reference as a matter of convenience for the caller.
return
end
local links = { }
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
return
end
if not wasHidden then
end
end
if hidden then
else
end
end
end
-- Order matters:
end
if # linkTypes == 0 then
-- Import a key/value pair table.
if isSupported ~= false then
end
end
else
-- Import a numerically indexed table.
end
end
end
if linkData and linkData . linkType then
-- Look up the parameter function for this link type.
-- If one exists then pass its variable return values as additional parameters for GAMEPAD_TOOLTIPS:LayoutLink.
-- Show current link.
if GAMEPAD_TOOLTIPS : LayoutLink ( self . gamepadTooltip , linkData . link , parameterFunction and parameterFunction ( self ) ) then
return
end
end
-- No link was shown so the link apparatus must be hidden.
end
if numLinks == 0 then
return
end
if nextIndex > numLinks then
nextIndex = 1
end
end
if numLinks == 0 then
return
end
if nextIndex < 1 then
nextIndex = numLinks
end
end
else
else
end
end
end |