ingame/crafting/gamepad/gamepadprovisioner.lua:34 -- GAMEPAD_PROVISIONER_ROOT_SCENE:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_SHOWING then
if GetCraftingInteractionType() == CRAFTING_TYPE_PROVISIONING then
TriggerTutorial(TUTORIAL_TRIGGER_PROVISIONING_OPENED)
end
if self.optionsChanged then
self:DirtyRecipeList()
self.optionsChanged = false
end
SYSTEMS:GetObject("craftingResults"):SetCraftingTooltip(self.resultTooltip)
self.recipeList:Activate()
KEYBIND_STRIP:RemoveDefaultExit()
KEYBIND_STRIP:AddKeybindButtonGroup(self.mainKeybindStripDescriptor)
ZO_GamepadCraftingUtils_RefreshGenericHeader(self)
ZO_GamepadGenericHeader_Activate(self.header)
-- refresh the recipe details on show, since they were cleared/hidden when the scene hid
-- and we may not have had a change in our list to trigger a refresh
local targetData = self.recipeList:GetTargetData()
self:RefreshRecipeDetails(targetData)
elseif newState == SCENE_HIDDEN then
SYSTEMS:GetObject("craftingResults"):SetCraftingTooltip(nil)
ZO_GamepadGenericHeader_Deactivate(self.header)
self.recipeList:Deactivate()
-- refresh the recipe details passing nil in to appropriately hide/clear the tooltip and ingredient list
local NO_SELECTED_DATA = nil
self:RefreshRecipeDetails(NO_SELECTED_DATA)
self.control:GetNamedChild("IngredientsBar"):SetHidden(false)
self:EndRecipePreview()
KEYBIND_STRIP:RemoveKeybindButtonGroup(self.mainKeybindStripDescriptor)
KEYBIND_STRIP:RestoreDefaultExit()
end
end)