ingame/stats/gamepad/zo_stats_gamepad.lua:204 -- GAMEPAD_STATS_ROOT_SCENE:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_SHOWING then
self:PerformDeferredInitializationRoot()
self:TryResetScreenState()
self:RefreshEquipmentBonus()
self:RegisterForEvents()
self:Update()
TriggerTutorial(TUTORIAL_TRIGGER_STATS_OPENED)
if GetAttributeUnspentPoints() > 0 then
TriggerTutorial(TUTORIAL_TRIGGER_STATS_OPENED_AND_ATTRIBUTE_POINTS_UNSPENT)
end
elseif newState == SCENE_HIDDEN then
self:DeactivateMainList()
if self.currentTitleDropdown ~= nil then
self.currentTitleDropdown:Deactivate(true)
end
if self.attributeTooltips then
self.attributeTooltips:Deactivate()
end
self:UnregisterForEvents()
end
ZO_Gamepad_ParametricList_Screen.OnStateChanged(self, oldState, newState)
end)