Back to Home

ESO Lua File v100035

ingame/guildfinder/keyboard/guildbrowser_applicationslist_keyboard.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
60
61
62
------------------
-- Guild Finder --
------------------
ZO_GuildBrowser_ApplicationsList_Keyboard = ZO_Object.MultiSubclass(ZO_GuildBrowser_Applications_Shared, ZO_GuildFinder_ApplicationsList_Keyboard)
function ZO_GuildBrowser_ApplicationsList_Keyboard:New(...)
    return ZO_GuildFinder_ApplicationsList_Keyboard.New(self, ...)
end
function ZO_GuildBrowser_ApplicationsList_Keyboard:Initialize(control)
    self.entryTemplate = "ZO_GuildBrowser_Application_Row_Keyboard"
    ZO_GuildBrowser_Applications_Shared.Initialize(self, control)
    ZO_GuildFinder_ApplicationsList_Keyboard.Initialize(self, control)
    self:SetEmptyText(GetString(SI_GUILD_BROWSER_APPLICATIONS_EMPTY_LIST_TEXT))
    self.sortFunction = function(listEntry1, listEntry2) return self:ComparePlayerApplications(listEntry1, listEntry2) end
    self.sortHeaderGroup:SelectHeaderByKey("durationS")
end
function ZO_GuildBrowser_ApplicationsList_Keyboard:BuildMasterList()
    self.currentApplications = GUILD_BROWSER_MANAGER:GetCurrentApplicationsList()
end
function ZO_GuildBrowser_ApplicationsList_Keyboard:FilterScrollList()
    local scrollData = ZO_ScrollList_GetDataList(self.list)
    ZO_ClearNumericallyIndexedTable(scrollData)
    for _, data in ipairs(self.currentApplications) do
        table.insert(scrollData, ZO_ScrollList_CreateDataEntry(ZO_GUILD_FINDER_APPLICATION_ENTRY_TYPE, data))
    end
end
function ZO_GuildBrowser_ApplicationsList_Keyboard:ComparePlayerApplications(listEntry1, listEntry2)
    return ZO_TableOrderingFunction(listEntry1.data, listEntry2.data, self.currentSortKey, ZO_GUILD_BROWSER_APPLICATIONS_ENTRY_SORT_KEYS, self.currentSortOrder)
end
function ZO_GuildBrowser_ApplicationsList_Keyboard:SetupRow(control, data)
    ZO_GuildBrowser_Applications_Shared.SetupRow(self, control, data)
end
-- XML Functions
-----------------
    GUILD_BROWSER_APPLICATIONS_KEYBOARD:GetSubcategoryManager(ZO_GUILD_BROWSER_APPLICATIONS_SUBCATEGORY_ACTIVE):Row_OnMouseEnter(control)
end
    GUILD_BROWSER_APPLICATIONS_KEYBOARD:GetSubcategoryManager(ZO_GUILD_BROWSER_APPLICATIONS_SUBCATEGORY_ACTIVE):Row_OnMouseExit(control)
end
    GUILD_BROWSER_APPLICATIONS_KEYBOARD:SetSubcategoryManager(ZO_GUILD_BROWSER_APPLICATIONS_SUBCATEGORY_ACTIVE, ZO_GuildBrowser_ApplicationsList_Keyboard:New(control))
end
    local guildInfo = ZO_AllianceIconNameFormatter(control.dataEntry.data.alliance, control.dataEntry.data.guildName)
    ZO_Dialogs_ShowDialog("GUILD_FINDER_RESCIND_APPLICATION", control.dataEntry.data, { mainTextParams = { ZO_WHITE:Colorize(guildInfo) } })
end