Back to Home

ESO Lua File v101044

ingame/restyle/gamepad/restylestation_helperpanel_gamepad.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
63
64
65
--------------
--Focus Grid--
--------------
ZO_GamepadInteractiveSortFilterFocusArea_Grid = ZO_GamepadMultiFocusArea_Base:Subclass()
function ZO_GamepadInteractiveSortFilterFocusArea_Grid:HandleMovement(horizontalResult, verticalResult)
    self.gridList:HandleMoveInDirection(horizontalResult, verticalResult)
    return true
end
function ZO_GamepadInteractiveSortFilterFocusArea_Grid:CanBeSelected()
    return self.gridList:HasEntries()
end
function ZO_GamepadInteractiveSortFilterFocusArea_Grid:HandleMovePrevious()
    local consumed = false
    if self.gridList:AtTopOfGrid() then
        consumed = ZO_GamepadMultiFocusArea_Base.HandleMovePrevious(self)
    end
    return consumed
end
ZO_Restyle_Station_Helper_Panel_Gamepad = ZO_Object:MultiSubclass(ZO_GamepadMultiFocusArea_Manager, ZO_CallbackObject)
function ZO_Restyle_Station_Helper_Panel_Gamepad:New(...)
    local panel = ZO_CallbackObject.New(self)
    panel:Initialize(...)
    return panel
end
function ZO_Restyle_Station_Helper_Panel_Gamepad:Initialize()
     ZO_GamepadMultiFocusArea_Manager.Initialize(self)
    self.isActive = false
end
function ZO_Restyle_Station_Helper_Panel_Gamepad:RebuildList()
    assert(false) -- must be overridden in derived classes
end
function ZO_Restyle_Station_Helper_Panel_Gamepad:EndSelection()
     self:FireCallbacks("PanelSelectionEnd", self)
end
function ZO_Restyle_Station_Helper_Panel_Gamepad:Activate()
    self.isActive = true
end
function ZO_Restyle_Station_Helper_Panel_Gamepad:Deactivate()
    self.isActive = false
end
function ZO_Restyle_Station_Helper_Panel_Gamepad:IsActive()
    return self.isActive
end
function ZO_Restyle_Station_Helper_Panel_Gamepad:OnShowing()
    -- override in derived classes
end
function ZO_Restyle_Station_Helper_Panel_Gamepad:OnHide()
    if self.isActive then
        self:Deactivate()
    end
end