ingame/crafting/gamepad/alchemy_gamepad.lua:57 -- GAMEPAD_ALCHEMY_CREATION_SCENE:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_SHOWING then
KEYBIND_STRIP:RemoveDefaultExit()
KEYBIND_STRIP:AddKeybindButtonGroup(self.mainKeybindStripDescriptor)
self.inventory:Activate()
self.inventory:OnShow()
GAMEPAD_CRAFTING_RESULTS:SetCraftingTooltip(self.tooltip)
GAMEPAD_CRAFTING_RESULTS:SetTooltipAnimationSounds(SOUNDS.ALCHEMY_CREATE_TOOLTIP_GLOW_SUCCESS, SOUNDS.ALCHEMY_CREATE_TOOLTIP_GLOW_FAIL)
self:UpdateTooltip()
elseif newState == SCENE_HIDDEN then
self.inventory:Deactivate()
KEYBIND_STRIP:RemoveKeybindButtonGroup(self.mainKeybindStripDescriptor)
KEYBIND_STRIP:RestoreDefaultExit()
self.inventory:HandleDirtyEvent()
GAMEPAD_CRAFTING_RESULTS:SetCraftingTooltip(nil)
self.tooltip:SetHidden(true)
end
end)