ingame/crafting/keyboard/smithing_keyboard.lua:57 -- SMITHING_SCENE:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_SHOWING then
TUTORIAL_SYSTEM:RegisterTriggerLayoutInfo(TUTORIAL_TYPE_POINTER_BOX, TUTORIAL_TRIGGER_ADD_CONSOLIDATED_ITEM_SETS_SHOWN_POINTER_BOX, self.control, SMITHING_FRAGMENT, self.addSetsTutorialAnchor)
if ZO_Smithing_IsConsolidatedStationCraftingMode() then
TriggerTutorial(TUTORIAL_TRIGGER_CONSOLIDATED_STATION_OPENED)
CONSOLIDATED_SMITHING_SET_DATA_MANAGER:SetSearchString(self.setSearchBox:GetText())
end
local craftingType = GetCraftingInteractionType()
ZO_Skills_TieSkillInfoHeaderToCraftingSkill(self.control:GetNamedChild("SkillInfo"), craftingType)
local isCraftingTypeDifferent = not self.interactingWithSameStation or self.oldCraftingType ~= craftingType
self.refinementPanel:SetCraftingType(craftingType, self.oldCraftingType, isCraftingTypeDifferent)
self.creationPanel:SetCraftingType(craftingType, self.oldCraftingType, isCraftingTypeDifferent)
self.improvementPanel:SetCraftingType(craftingType, self.oldCraftingType, isCraftingTypeDifferent)
self.deconstructionPanel:SetCraftingType(craftingType, self.oldCraftingType, isCraftingTypeDifferent)
self.researchPanel:SetCraftingType(craftingType, self.oldCraftingType, isCraftingTypeDifferent)
self.oldCraftingType = craftingType
KEYBIND_STRIP:AddKeybindButtonGroup(self.keybindStripDescriptor)
self:AddTabsToMenuBar(craftingType, isCraftingTypeDifferent)
elseif newState == SCENE_HIDDEN then
ZO_InventorySlot_RemoveMouseOverKeybinds()
KEYBIND_STRIP:RemoveKeybindButtonGroup(self.keybindStripDescriptor)
self:DirtyAllPanels()
ZO_Skills_UntieSkillInfoHeaderToCraftingSkill(self.control:GetNamedChild("SkillInfo"))
CRAFTING_RESULTS:SetCraftingTooltip(nil)
CRAFTING_RESULTS:SetContextualAnimationControl(CRAFTING_PROCESS_CONTEXT_CONSUME_ATTUNABLE_STATIONS, nil)
end
end)