internalingame/scrying/scrying.lua:1302 -- SCRYING_SCENE:RegisterCallback("StateChange", function(oldState, newState)
local NO_SOUND = true
local ANIMATE_INSTANTLY = true
if newState == SCENE_SHOWING then
self.isScryingReady = false
self.startedOutro = false
self.startedEndOfGame = false
self:TrySetCurrentSkill(SCRYING_ACTIVE_SKILL_NORMAL, NO_SOUND)
self.board:OnShowing()
self.normalActionMeter:OnShowing()
self:RefreshNormalActionMeter(ANIMATE_INSTANTLY)
self:RefreshSpecialActionMeter(ANIMATE_INSTANTLY)
self:RefreshActionButtons()
self:RefreshEyeAnimations()
self:RefreshMoreInfoButton()
self:RefreshInputState()
PlaySound(SOUNDS.SCRYING_START_INTRO)
elseif newState == SCENE_HIDING then
--clear the current tutorial when hiding so we don't push an extra action layer
self:RefreshInputState()
ZO_Dialogs_ReleaseAllDialogsOfName("CONFIRM_EXIT_SCRYING")
elseif newState == SCENE_HIDDEN then
self.board:OnHidden()
-- on the off chance that we are asked to hide while the outro is still in progress, clear out all that state
self:ResetScryingPostGameElements()
end
end)