- ingame/champion/champion.lua:926 --
state:RegisterCallback("OnActivated", function()
local targetNode = self.constellations[ZO_CHAMPION_CENTERED_CONSTELLATION_INDEX]:GetFirstRingNode()
self.ring:SetAngle(math.pi - ONE_SIXTH_PI)
self.centerInfoAlphaInterpolator:SetCurrentValue(0)
self.centerInfoControl:SetAlpha(0)
self.radialSelectorTexture:SetAlpha(0)
self:AttachConstellationsAroundNode(targetNode)
self:SetRootCameraX(0)
self:SetRootCameraY(ZO_CHAMPION_INITIAL_CAMERA_Y)
self:SetRootCameraZ(ZO_CHAMPION_INITIAL_CAMERA_Z)
self:SetAnimation(ENTER_ANIMATION)
end)
- ingame/champion/champion.lua:944 --
state:RegisterCallback("OnActivated", function()
if IsInGamepadPreferredMode() then
self:ResetConstellationSelectorToTop()
end
self.centerInfoAlphaInterpolator:SetTargetBase(1)
local result = GetChampionPurchaseAvailability()
if result == CHAMPION_PURCHASE_SUCCESS then
self.inactiveAlert.messageLabel:SetHidden(true)
else
self.inactiveAlert.messageLabel:SetHidden(false)
self:RefreshInactiveAlertMessage()
end
end)
- ingame/champion/champion.lua:958 --
state:RegisterCallback("OnDeactivated", function()
self.centerInfoAlphaInterpolator:SetCurrentValue(0)
self.centerInfoAlphaInterpolator:SetTargetBase(0)
self.centerInfoControl:SetAlpha(0)
self.radialSelectorTexture:SetAlpha(0)
self.inactiveAlert.messageLabel:SetHidden(true)
end)
- ingame/champion/champion.lua:982 --
state:RegisterCallback("OnActivated", function()
-- trigger should set nextTargetNode
if IsInGamepadPreferredMode() then
zoomInAnimation.targetCameraY = ZO_CHAMPION_GAMEPAD_ZOOMED_IN_CAMERA_Y
zoomInAnimation.targetCameraZ = ZO_CHAMPION_GAMEPAD_ZOOMED_IN_CAMERA_Z
else
zoomInAnimation.targetCameraY = ZO_CHAMPION_KEYBOARD_ZOOMED_IN_CAMERA_Y
zoomInAnimation.targetCameraZ = ZO_CHAMPION_KEYBOARD_ZOOMED_IN_CAMERA_Z
end
local node = self.nextTargetNode
zoomInAnimation.targetNode = node
ZO_ClearTable(zoomInAnimation.nodePadding)
zoomInAnimation.nodePadding[node] = 0
self:SetAnimation(zoomInAnimation)
PlaySound(SOUNDS.CHAMPION_ZOOM_IN)
self.nextTargetNode = nil
end)
- ingame/champion/champion.lua:1002 --
state:RegisterCallback("OnDeactivated", function()
self:SelectConstellationNodeInternal(nil)
end)
- ingame/champion/champion.lua:1022 --
state:RegisterCallback("OnActivated", function()
zoomOutAnimation.targetCameraY = ZO_CHAMPION_ZOOMED_OUT_CAMERA_Y
zoomOutAnimation.targetCameraZ = ZO_CHAMPION_ZOOMED_OUT_CAMERA_Z
local targetNode = self.constellations[ZO_CHAMPION_CENTERED_CONSTELLATION_INDEX]:GetNodeInSameHemisphereAsOtherNode(self.chosenRingNode)
zoomOutAnimation.targetNode = targetNode
self:AttachConstellationsAroundNode(targetNode)
ZO_ClearTable(zoomOutAnimation.nodePadding)
for _, node in self.ring:NodeIterator() do
zoomOutAnimation.nodePadding[node] = 0
end
PlaySound(SOUNDS.CHAMPION_ZOOM_OUT)
self:SetAnimation(zoomOutAnimation)
if self.currentChangingEditor then
-- release
self.currentChangingEditor:StopChangingPoints()
self.currentChangingEditor = nil
end
self.refreshGroup:MarkDirty("AllData")
end)
- ingame/champion/champion.lua:1056 --
state:RegisterCallback("OnActivated", function()
zoomedInCycleAnimation.targetNode = self.nextTargetNode
self.nextTargetNode.constellation:PlayOnCycledToSound()
self:SetAnimation(zoomedInCycleAnimation)
self.nextTargetNode = nil
if self.currentChangingEditor then
-- release
self.currentChangingEditor:StopChangingPoints()
self.currentChangingEditor = nil
end
end)
- ingame/champion/champion.lua:1079 --
state:RegisterCallback("OnActivated", function()
SCENE_MANAGER:RemoveFragment(self.keyboardConstellationViewFragment)
SCENE_MANAGER:RemoveFragment(self.gamepadConstellationViewFragment)
zoomInClusterAnimation.targetCluster = self.chosenConstellation:GetClusterByClusterData(self.nextTargetClusterData)
zoomInClusterAnimation.targetClusterData = self.nextTargetClusterData
zoomInClusterAnimation.startingCluster = self.chosenConstellation:GetCurrentCluster()
if IsInGamepadPreferredMode() then
zoomInClusterAnimation.targetCameraX = nil
zoomInClusterAnimation.targetCameraY = nil
else
local worldX, worldY = zoomInClusterAnimation.targetCluster:GetWorldSpaceCoordinates()
zoomInClusterAnimation.targetCameraX = worldX
zoomInClusterAnimation.targetCameraY = -worldY
end
zoomInClusterAnimation.targetCameraZ = IsInGamepadPreferredMode() and ZO_CHAMPION_GAMEPAD_ZOOMED_IN_CLUSTER_CAMERA_Z or ZO_CHAMPION_KEYBOARD_ZOOMED_IN_CLUSTER_CAMERA_Z
self:SetAnimation(zoomInClusterAnimation)
PlaySound(SOUNDS.CHAMPION_ZOOM_IN)
end)
- ingame/champion/champion.lua:1098 --
state:RegisterCallback("OnDeactivated", function()
self.chosenConstellation:ChangeCurrentCluster(self.nextTargetClusterData)
self.nextTargetClusterData = nil
end)
- ingame/champion/champion.lua:1112 --
state:RegisterCallback("OnActivated", function()
zoomOutClusterAnimation.targetCluster = self.chosenConstellation:GetClusterByClusterData(self.nextTargetClusterData)
zoomOutClusterAnimation.targetClusterData = self.nextTargetClusterData
zoomOutClusterAnimation.startingCluster = self.chosenConstellation:GetCurrentCluster()
if IsInGamepadPreferredMode() then
zoomOutClusterAnimation.targetCameraX = nil
zoomOutClusterAnimation.targetCameraY = nil
else
zoomOutClusterAnimation.targetCameraX = 0
zoomOutClusterAnimation.targetCameraY = ZO_CHAMPION_KEYBOARD_ZOOMED_IN_CAMERA_Y
end
zoomOutClusterAnimation.targetCameraZ = IsInGamepadPreferredMode() and ZO_CHAMPION_GAMEPAD_ZOOMED_IN_CAMERA_Z or ZO_CHAMPION_KEYBOARD_ZOOMED_IN_CAMERA_Z
self:SetAnimation(zoomOutClusterAnimation)
PlaySound(SOUNDS.CHAMPION_ZOOM_OUT)
if self.currentChangingEditor then
-- release
self.currentChangingEditor:StopChangingPoints()
self.currentChangingEditor = nil
end
end)
- ingame/champion/champion.lua:1133 --
state:RegisterCallback("OnDeactivated", function()
if IsInGamepadPreferredMode() then
SCENE_MANAGER:AddFragment(self.gamepadConstellationViewFragment)
else
SCENE_MANAGER:AddFragment(self.keyboardConstellationViewFragment)
end
self.chosenConstellation:ChangeCurrentCluster(self.nextTargetClusterData)
self.nextTargetClusterData = nil
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:373 --
state:RegisterCallback("OnActivated", function()
self.modalUnderlayTimeline:PlayInstantlyToStart(IGNORE_ANIMATION_CALLBACKS)
self.failureTimeline:PlayInstantlyToStart(IGNORE_ANIMATION_CALLBACKS)
self.antiquityRewardTimeline:PlayInstantlyToStart(IGNORE_ANIMATION_CALLBACKS)
self.newLeadTimeline:PlayInstantlyToStart(IGNORE_ANIMATION_CALLBACKS)
self.bonusRewardsTimeline:PlayInstantlyToStart(IGNORE_ANIMATION_CALLBACKS)
self.setProgressionTimeline:PlayInstantlyToStart(IGNORE_ANIMATION_CALLBACKS)
self.setCompleteTimeline:PlayInstantlyToStart(IGNORE_ANIMATION_CALLBACKS)
self.setProgressionAntiquityIconScaleTimeline:PlayInstantlyToStart(IGNORE_ANIMATION_CALLBACKS)
self.loreTimeline:PlayInstantlyToStart(IGNORE_ANIMATION_CALLBACKS)
self.keybindTimeline:PlayInstantlyToStart(IGNORE_ANIMATION_CALLBACKS)
self.failureControl:SetHidden(true)
self.antiquityRewardControl:SetHidden(true)
self.newLeadControl:SetHidden(true)
self.bonusRewardsControl:SetHidden(true)
self.setProgressionControl:SetHidden(true)
self.setCompleteControl:SetHidden(true)
self.transferControl:SetHidden(true)
self.loreControl:SetHidden(true)
self.bonusesControlPool:ReleaseAllObjects()
self.bonusesRowControlPool:ReleaseAllObjects()
self.setProgressionAntiquityIconPool:ReleaseAllObjects()
self.setProgressionSparksParticleSystem:Stop()
self.setCompleteBlastParticleSystem:Stop()
self.setCompleteSparksParticleSystem:Stop()
self.setCompleteStarbustParticleSystem:Stop()
ANTIQUITY_LORE_DOCUMENT_MANAGER:ReleaseAllObjects(self.loreControl)
self:ConfigureKeybindButton(self.primaryKeybindButton, false)
self:ConfigureKeybindButton(self.secondaryKeybindButton, false)
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:407 --
state:RegisterCallback("OnActivated", function()
-- This state primarily exists to allow the two possible paths (REWARD_IN/FAILURE_IN) to run their conditionals
-- And to animate shared controls
SCENE_MANAGER:AddFragment(UNIFORM_BLUR_FRAGMENT)
self.modalUnderlayTimeline:PlayFromStart()
self.keybindTimeline:PlayFromStart()
fanfareStateMachine:FireCallbacks(ZO_END_OF_GAME_FANFARE_TRIGGER_COMMANDS.NEXT)
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:419 --
state:RegisterCallback("OnActivated", function()
self:ConfigureKeybindButton(self.primaryKeybindButton, true, GetString(SI_ANTIQUITY_DIGGING_FANFARE_NEXT))
self.antiquityRewardControl:SetHidden(false)
self.rewardsOutTimeline:PlayInstantlyToStart(IGNORE_ANIMATION_CALLBACKS)
self.antiquityRewardTimeline:PlayInstantlyToStart(IGNORE_ANIMATION_CALLBACKS)
self.antiquityRewardTimeline:PlayFromStart()
PlaySound(SOUNDS.ANTIQUITIES_FANFARE_FRAGMENT_FOUND)
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:428 --
state:RegisterCallback("OnDeactivated", function()
if self.antiquityRewardTimeline:IsPlaying() then
self.antiquityRewardTimeline:PlayInstantlyToEnd(IGNORE_ANIMATION_CALLBACKS)
end
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:437 --
state:RegisterCallback("OnActivated", function()
self.newLeadControl:SetHidden(false)
self.newLeadTimeline:PlayInstantlyToStart(IGNORE_ANIMATION_CALLBACKS)
self.newLeadTimeline:PlayFromStart()
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:446 --
state:RegisterCallback("OnActivated", function()
self.bonusRewardsControl:SetHidden(false)
self.bonusRewardsTimeline:PlayInstantlyToStart(IGNORE_ANIMATION_CALLBACKS)
self.bonusRewardsTimeline:PlayFromStart()
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:455 --
state:RegisterCallback("OnActivated", function()
-- We may have gotten here via a skip, which means we may never have even made it into the interstitial states
-- So just ensure these animations are where we want them to be by this point in the flow
if self.hasNewLead then
self.newLeadControl:SetHidden(false)
self.newLeadTimeline:PlayInstantlyToEnd(IGNORE_ANIMATION_CALLBACKS)
end
-- The bonus rewards section always shows even if there aren't any rewards
self.bonusRewardsControl:SetHidden(false)
self.bonusRewardsTimeline:PlayInstantlyToEnd(IGNORE_ANIMATION_CALLBACKS)
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:470 --
state:RegisterCallback("OnActivated", function()
self.rewardsOutTimeline:PlayFromStart()
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:474 --
state:RegisterCallback("OnDeactivated", function()
if self.rewardsOutTimeline:IsPlaying() then
self.rewardsOutTimeline:PlayInstantlyToEnd(IGNORE_ANIMATION_CALLBACKS)
end
self.antiquityRewardControl:SetHidden(true)
self.bonusRewardsControl:SetHidden(true)
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:485 --
state:RegisterCallback("OnActivated", function()
self.setProgressionControl:SetHidden(false)
self.setProgressionTimeline:PlayFromStart()
PlaySound(SOUNDS.ANTIQUITIES_FANFARE_FRAGMENT_PROGRESSION)
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:491 --
state:RegisterCallback("OnDeactivated", function()
local primaryAnimationIsPlaying = self.setProgressionTimeline:IsPlaying()
if primaryAnimationIsPlaying then
self.setProgressionTimeline:PlayInstantlyToEnd(IGNORE_ANIMATION_CALLBACKS)
end
for _, activeIcon in self.setProgressionAntiquityIconPool:ActiveObjectIterator() do
if primaryAnimationIsPlaying or activeIcon.fadeTimeline:IsPlaying() then
activeIcon.fadeTimeline:PlayInstantlyToEnd(IGNORE_ANIMATION_CALLBACKS)
end
end
if primaryAnimationIsPlaying or self.setProgressionAntiquityIconScaleTimeline:IsPlaying() then
local DONT_DESATURATE, DONT_SHOW_SILHOUETTE = false, false
self.setProgressionControlForCurrentAntiquity:SetDisplayBehavior(DONT_DESATURATE, DONT_SHOW_SILHOUETTE)
self.setProgressionAntiquityIconScaleTimeline:SetAllAnimationOffsets(0)
self.setProgressionAntiquityIconScaleTimeline:PlayInstantlyToStart(IGNORE_ANIMATION_CALLBACKS)
self.setProgressionSparksParticleSystem:Start()
end
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:516 --
state:RegisterCallback("OnActivated", function()
self.setProgressionTimeline:PlayBackward()
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:520 --
state:RegisterCallback("OnDeactivated", function()
if self.setProgressionTimeline:IsPlaying() then
self.setProgressionTimeline:PlayInstantlyToStart(IGNORE_ANIMATION_CALLBACKS)
end
self.setProgressionControl:SetHidden(true)
self.setProgressionSparksParticleSystem:Stop()
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:531 --
state:RegisterCallback("OnActivated", function()
self.setCompleteControl:SetHidden(false)
self.setCompleteTimeline:PlayFromStart()
self.setCompleteBlastParticleSystem:Start()
self.setCompleteSparksParticleSystem:Start()
self.setCompleteStarbustParticleSystem:Start()
PlaySound(SOUNDS.ANTIQUITIES_FANFARE_COMPLETED)
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:540 --
state:RegisterCallback("OnDeactivated", function()
if self.setCompleteTimeline:IsPlaying() then
self.setCompleteTimeline:PlayInstantlyToEnd(IGNORE_ANIMATION_CALLBACKS)
end
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:551 --
state:RegisterCallback("OnActivated", function()
self.setCompleteTimeline:PlayBackward()
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:555 --
state:RegisterCallback("OnDeactivated", function()
if self.setCompleteTimeline:IsPlaying() then
self.setCompleteTimeline:PlayInstantlyToStart(IGNORE_ANIMATION_CALLBACKS)
end
self.setCompleteControl:SetHidden(true)
self.setCompleteBlastParticleSystem:Stop()
self.setCompleteSparksParticleSystem:Stop()
self.setCompleteStarbustParticleSystem:Stop()
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:568 --
state:RegisterCallback("OnActivated", function()
StartDiggingTransitionToNextDay()
self.transferControl:SetHidden(false)
self.transferTimeline:PlayFromStart()
self:ConfigureKeybindButton(self.primaryKeybindButton, false)
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:575 --
state:RegisterCallback("OnDeactivated", function()
self.transferControl:SetHidden(true)
self.transferTimeline:Stop()
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:583 --
state:RegisterCallback("OnActivated", function()
self.loreControl:SetAlpha(0)
self.loreControl:SetHidden(false)
self.loreTimeline:PlayFromStart()
PlaySound(SOUNDS.ANTIQUITIES_FANFARE_MOTIF_SCROLL_APPEAR)
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:593 --
state:RegisterCallback("OnDeactivated", function()
if self.loreTimeline:IsPlaying() then
self.loreTimeline:PlayInstantlyToEnd(IGNORE_ANIMATION_CALLBACKS)
end
self.loreControl:SetHidden(true)
ANTIQUITY_LORE_DOCUMENT_MANAGER:ReleaseAllObjects(self.loreControl)
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:604 --
state:RegisterCallback("OnActivated", function()
self:ConfigureKeybindButton(self.primaryKeybindButton, true, GetString(SI_EXIT_BUTTON))
self.failureControl:SetHidden(false)
self.failureTimeline:PlayFromStart()
PlaySound(SOUNDS.ANTIQUITIES_FANFARE_FAILURE)
end)
- internalingame/antiquitydigging/antiquitydiggingsummary.lua:614 --
state:RegisterCallback("OnActivated", function()
SCENE_MANAGER:RequestShowLeaderBaseScene()
end)