Back to Home

ESO Lua File v101042

ingame/banking/banking_shared.lua

[◄ back to folders ]
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
ZO_Banking_Shared = ZO_InitializingObject:Subclass()
function ZO_Banking_Shared:Initialize(control)
    local bankFilterTargetDescriptor =
    {
        [BACKGROUND_LIST_FILTER_TARGET_BAG_SLOT] =
        {
            searchFilterList =
            {
                BACKGROUND_LIST_FILTER_TYPE_NAME,
            },
            primaryKeys =
            {
                BAG_BACKPACK,
                BAG_BANK,
                BAG_SUBSCRIBER_BANK,
            }
        },
    }
    TEXT_SEARCH_MANAGER:SetupContextTextSearch("playerBankTextSearch", bankFilterTargetDescriptor)
    local houseBankFilterTargetDescriptor =
    {
        [BACKGROUND_LIST_FILTER_TARGET_BAG_SLOT] =
        {
            searchFilterList =
            {
                BACKGROUND_LIST_FILTER_TYPE_NAME,
            },
            primaryKeys = function()
                local bankingBag = GetBankingBag()
                if IsHouseBankBag(bankingBag) then
                    return { BAG_BACKPACK, bankingBag }
                end
                return {}
            end,
        },
    }
    TEXT_SEARCH_MANAGER:SetupContextTextSearch("houseBankTextSearch", houseBankFilterTargetDescriptor)
    local guildBankFilterTargetDescriptor =
    {
        [BACKGROUND_LIST_FILTER_TARGET_BAG_SLOT] =
        {
            searchFilterList =
            {
                BACKGROUND_LIST_FILTER_TYPE_NAME,
            },
            primaryKeys =
            {
                BAG_BACKPACK,
                BAG_GUILDBANK,
            }
        },
    }
    TEXT_SEARCH_MANAGER:SetupContextTextSearch("guildBankTextSearch", guildBankFilterTargetDescriptor)
end
ZO_BANKING_SHARED = ZO_Banking_Shared:New()