Back to Home

ESO Lua File v100028

ingame/guildfinder/gamepad/guildfinder_listpanel_gamepadbehavior.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
-----------------------------------------
-- Guild Finder List Panel Gamepad Behavior --
-----------------------------------------
ZO_GuildFinder_ListPanel_GamepadBehavior = ZO_Object.MultiSubclass(ZO_GuildFinder_Panel_GamepadBehavior, ZO_GamepadInteractiveSortFilterList)
function ZO_GuildFinder_ListPanel_GamepadBehavior:New(...)
    return ZO_GuildFinder_Panel_GamepadBehavior.New(self, ...)
end
function ZO_GuildFinder_ListPanel_GamepadBehavior:Initialize(control)
    ZO_GamepadInteractiveSortFilterList.Initialize(self, control)
    ZO_GuildFinder_Panel_GamepadBehavior.Initialize(self, control)
    local scrollData = ZO_ScrollList_GetDataList(self.list)
    ZO_GamepadInteractiveSortFilterList:SetMasterList(scrollData)
end
function ZO_GuildFinder_ListPanel_GamepadBehavior:InitializeKeybinds()
    ZO_GuildFinder_Panel_GamepadBehavior.InitializeKeybinds(self)
    ZO_GamepadInteractiveSortFilterList.InitializeKeybinds(self)
end
function ZO_GuildFinder_ListPanel_GamepadBehavior:CanBeActivated()
end
function ZO_GuildFinder_ListPanel_GamepadBehavior:Activate()
    ZO_GamepadInteractiveSortFilterList.Activate(self)
    ZO_GuildFinder_Panel_GamepadBehavior.Activate(self)
end
function ZO_GuildFinder_ListPanel_GamepadBehavior:Deactivate()
    ZO_GamepadInteractiveSortFilterList.Deactivate(self)
    ZO_GuildFinder_Panel_GamepadBehavior.Deactivate(self)
    self:EndSelection()
end
function ZO_GuildFinder_ListPanel_GamepadBehavior:CommitScrollList()
    ZO_GamepadInteractiveSortFilterList.CommitScrollList(self)
end
function ZO_GuildFinder_ListPanel_GamepadBehavior:GetBackKeybindCallback()
    return function()
        PlaySound(SOUNDS.GAMEPAD_MENU_BACK)
        self:EndSelection()
    end
end
function ZO_GuildFinder_ListPanel_GamepadBehavior:OnCommitComplete()
    -- To be overridden
end