Back to Home
ESO Function Data v101044
SetAdditionalInputNarrationFunction()
Function Aliases
- No known aliases for this function.
Global Function Definitions
Local Function Definitions
- No known local definitions for this function.
Function Calls
- internalingame/marketannouncement/gamepad/marketannouncement_gamepad.lua:52 -- self.carousel:SetAdditionalInputNarrationFunction(function()
local narrationData = {}
--Generate the narration for the scroll keybind if applicable
if not self.scrollButton:IsHidden() then
if ZO_Keybindings_ShouldShowGamepadKeybind() then
local scrollNarrationData =
{
name = GetString(SI_MARKET_ANNOUNCEMENT_SCROLL_KEYBIND),
--The gamepad scroll "keybind" isn't a real keybind so just use the key that gives us the narration we want here
keybindName = ZO_Keybindings_GetNarrationStringFromKeys(KEY_GAMEPAD_RIGHT_STICK, KEY_INVALID, KEY_INVALID, KEY_INVALID, KEY_INVALID),
enabled = true,
}
table.insert(narrationData, scrollNarrationData)
else
local scrollUpNarrationData =
{
keybindName = ZO_Keybindings_GetHighestPriorityNarrationStringFromAction("UI_SHORTCUT_RIGHT_STICK_UP") or GetString(SI_ACTION_IS_NOT_BOUND),
enabled = true,
}
table.insert(narrationData, scrollUpNarrationData)
local scrollDownNarrationData =
{
name = GetString(SI_MARKET_ANNOUNCEMENT_SCROLL_KEYBIND),
keybindName = ZO_Keybindings_GetHighestPriorityNarrationStringFromAction("UI_SHORTCUT_RIGHT_STICK_DOWN") or GetString(SI_ACTION_IS_NOT_BOUND),
enabled = true,
}
table.insert(narrationData, scrollDownNarrationData)
end
end
--Generate the narration for the select button if it is visible
local selectButtonNarrationData = self.selectButton:GetKeybindButtonNarrationData()
if selectButtonNarrationData then
table.insert(narrationData, selectButtonNarrationData)
end
--Generate the narration for the help button if it is visible
local helpButtonNarrationData = self.helpButton:GetKeybindButtonNarrationData()
if helpButtonNarrationData then
table.insert(narrationData, helpButtonNarrationData)
end
--Generate the narration for the close button
table.insert(narrationData, self:GetCloseKeybindNarrationData())
--Only narrate the directional input if there is more than one market product
if self.carousel:CanScroll() then
local directionalInputNarrationData = ZO_GetHorizontalDirectionalInputNarrationData(GetString(SI_SCREEN_NARRATION_TABBAR_PREVIOUS_KEYBIND), GetString(SI_SCREEN_NARRATION_TABBAR_NEXT_KEYBIND))
ZO_CombineNumericallyIndexedTables(narrationData, directionalInputNarrationData)
end
return narrationData
end)