ingame/campaign/gamepad/campaignbonuses_gamepad.lua:25 -- CAMPAIGN_BONUSES_GAMEPAD_FRAGMENT:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_FRAGMENT_SHOWN then
self:RegisterForEvents()
self:UpdateBonuses()
elseif newState == SCENE_FRAGMENT_HIDDEN then
self:UnregisterForEvents()
self:Deactivate()
end
end)