internalingame/tribute/gamepad/tributepileviewer_gamepad.lua:19 -- TRIBUTE_PILE_VIEWER_GAMEPAD_FRAGMENT:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_FRAGMENT_SHOWING then
self:RefreshHeader()
elseif newState == SCENE_FRAGMENT_SHOWN then
self.gridList:Activate()
ZO_GamepadGenericHeader_Activate(self.header)
KEYBIND_STRIP:AddKeybindButtonGroup(self.keybindStripDescriptor)
elseif newState == SCENE_FRAGMENT_HIDING then
if self.gridList:IsActive() then
self.gridList:Deactivate()
end
ZO_GamepadGenericHeader_Deactivate(self.header)
KEYBIND_STRIP:RemoveKeybindButtonGroup(self.keybindStripDescriptor)
end
end)