pregame/console/emergencyscreen/pregameinitialscreen_gamepad.lua:46 -- PREGAME_INITIAL_SCREEN_CONSOLE_SCENE:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_SHOWING then
ZO_ControllerDisconnect_DismissPopup()
self:PerformDeferredInitialization()
KEYBIND_STRIP:RemoveDefaultExit()
self.currentKeybindStripDescriptor = self:IsShowingVerificationError() and self.verifyEmailKeybindsDescriptor or self.pressAnyKeybindsDescriptor
KEYBIND_STRIP:AddKeybindButtonGroup(self.currentKeybindStripDescriptor)
elseif newState == SCENE_SHOWN then
DisableShareFeatures()
self.fadeMode = LOGO_FADE_IN
if self.playIntroAnimation then
zo_callLater(function() self.esoLogoAnimation:PlayFromStart() end, SHOW_LOGO_DELAY_TIME_MS)
self.playIntroAnimation = false
else
self.esoLogoAnimation:PlayInstantlyToEnd()
end
if IsErrorQueuedFromIngame() then
ZO_Gamepad_DisplayServerDisconnectedError()
end
elseif newState == SCENE_HIDDEN then
self:ClearError()
PregameStateManager_ClearError()
KEYBIND_STRIP:RemoveKeybindButtonGroup(self.currentKeybindStripDescriptor)
KEYBIND_STRIP:RestoreDefaultExit()
end
end)