internalingame/antiquitydigging/antiquitydigging.lua:117 -- ANTIQUITY_DIGGING_SUMMARY_FRAGMENT:RegisterCallback("StateChange", function(oldState, newState)
-- When the end of game summary fragment comes in, we want to get rid of the keybinds
-- and tone down the bars so they don't feel like they're part of the summary but can still be referenced
if ANTIQUITY_DIGGING_SCENE:IsShowing() then
if newState == SCENE_FRAGMENT_SHOWING then
self.keybindContainerFastTimeline:PlayFromEnd()
elseif newState == SCENE_FRAGMENT_HIDDEN then
-- This is only here in cases where we hide the fragment while the game is still going (i.e. debug)
self.keybindContainerFastTimeline:PlayFromStart()
end
end
end)