Back to Home
ESO Function Data v101044
SetWithdrawKeybindDescriptor()
Function Aliases
- No known aliases for this function.
Global Function Definitions
Local Function Definitions
- No known local definitions for this function.
Function Calls
- ingame/banking/gamepad/banking_gamepad.lua:564 -- self:SetWithdrawKeybindDescriptor(self.mainKeybindStripDescriptor)
- ingame/inventory/gamepad/guildbank_gamepad.lua:581 -- self:SetWithdrawKeybindDescriptor(
{
alignment = KEYBIND_STRIP_ALIGN_LEFT,
{
keybind = "UI_SHORTCUT_PRIMARY",
name = function()
return GetString(SI_BANK_WITHDRAW_BIND)
end,
enabled = function()
return self:CanWithdraw()
end,
visible = function()
local currentDataType = GetCurrentDataType(self.withdrawList)
if currentDataType == CURRENT_DATA_TYPE_GOLD_SELECTOR then
return CanUseBank(GUILD_PERMISSION_BANK_WITHDRAW_GOLD)
elseif currentDataType == CURRENT_DATA_TYPE_ITEM_DATA then
return CanUseBank(GUILD_PERMISSION_BANK_WITHDRAW) and GetNumBagUsedSlots(BAG_GUILDBANK) > 0
end
end,
callback = function()
self:ConfirmWithdrawal()
end,
},
{
keybind = "UI_SHORTCUT_LEFT_STICK",
name = function()
local sortIconPath = self.withdrawList.currentSortOrder == ZO_ICON_SORT_ARROW_UP and SORT_ARROW_UP or ZO_ICON_SORT_ARROW_DOWN
local sortIconText = zo_iconFormat(sortIconPath, 16, 16)
if ZO_IsTableEmpty(self.withdrawList.filterCategories) then
return zo_strformat(GetString(SI_GAMEPAD_BANK_FILTER_KEYBIND), GetString("SI_ITEMLISTSORTTYPE", self.withdrawList.currentSortType), sortIconText)
else
return zo_strformat(GetString(SI_GAMEPAD_BANK_FILTER_SORT_DROPDOWN_TEXT), NonContiguousCount(self.withdrawList.filterCategories), GetString("SI_ITEMLISTSORTTYPE", self.withdrawList.currentSortType), sortIconText)
end
end,
callback = function()
ZO_Dialogs_ShowGamepadDialog("GAMEPAD_BANK_SEARCH_FILTERS", { bankObject = self })
end
},
self.switchActiveGuildKeybind,
})