ingame/inventory/gamepad/guildbank_gamepad.lua:626 -- self:SetDepositKeybindDescriptor(
{
alignment = KEYBIND_STRIP_ALIGN_LEFT,
{
keybind = "UI_SHORTCUT_PRIMARY",
name = function()
return GetString(SI_BANK_DEPOSIT_BIND)
end,
enabled = function()
return self:CanDeposit()
end,
visible = function()
local currentDataType = GetCurrentDataType(self.depositList)
if currentDataType == CURRENT_DATA_TYPE_GOLD_SELECTOR then
return DoesGuildHavePrivilege(GetSelectedGuildBankId(), GUILD_PRIVILEGE_BANK_DEPOSIT)
elseif currentDataType == CURRENT_DATA_TYPE_ITEM_DATA then
return not self.loadingGuildBank and CanUseBank(GUILD_PERMISSION_BANK_DEPOSIT) and GetNumBagUsedSlots(BAG_BACKPACK) > 0 and DoesGuildHavePrivilege(GetSelectedGuildBankId(), GUILD_PRIVILEGE_BANK_DEPOSIT)
end
end,
callback = function()
self:ConfirmDeposit()
end
},
self.switchActiveGuildKeybind,
})