ingame/tribute/tribute.lua:124 -- TRIBUTE_FRAGMENT:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_FRAGMENT_SHOWING then
CLOSE_ACTIONS_INTERCEPT_LAYER_FRAGMENT:RegisterCallback("InterceptCloseAction", OnInterceptCloseAction)
self:RefreshPlayerInfo()
self:RefreshInputModeFragments()
--The UI cannot be toggled while a tribute match is ongoing, so make sure it isn't hidden when we start
if GetGuiHidden("ingame") then
SetGuiHidden("ingame", false)
end
elseif newState == SCENE_FRAGMENT_HIDING then
CLOSE_ACTIONS_INTERCEPT_LAYER_FRAGMENT:UnregisterCallback("InterceptCloseAction", OnInterceptCloseAction)
elseif newState == SCENE_FRAGMENT_HIDDEN then
self.gameFlowState = TRIBUTE_GAME_FLOW_STATE_INACTIVE
end
end)