- ingame/crafting/gamepad/enchanting_gamepad.lua:170 --
self.inventory.list:SetOnSelectedDataChangedCallback(self.onSelectedDataChangedCallback)
- ingame/crafting/gamepad/smithingextraction_gamepad.lua:53 --
self.inventory.list:SetOnSelectedDataChangedCallback(function(list, selectedData)
KEYBIND_STRIP:UpdateKeybindButtonGroup(self.keybindStripDescriptor)
self.itemActions:SetInventorySlot(selectedData)
if selectedData and selectedData.bagId and selectedData.slotIndex then
local SHOW_COMBINED_COUNT = true
GAMEPAD_TOOLTIPS:LayoutBagItem(GAMEPAD_LEFT_TOOLTIP, selectedData.bagId, selectedData.slotIndex, SHOW_COMBINED_COUNT)
else
GAMEPAD_TOOLTIPS:ClearLines(GAMEPAD_LEFT_TOOLTIP)
end
end)
- ingame/crafting/gamepad/smithingimprovement_gamepad.lua:59 --
self.inventory.list:SetOnSelectedDataChangedCallback(function(list, selectedData)
KEYBIND_STRIP:UpdateKeybindButtonGroup(self.keybindStripDescriptor)
self.itemActions:SetInventorySlot(selectedData)
if selectedData and selectedData.bagId and selectedData.slotIndex then
self.sourceTooltip.scrollTooltip:ResetToTop()
self.sourceTooltip.tip:ClearLines()
self.sourceTooltip.tip:LayoutImproveSourceSmithingItem(selectedData.bagId, selectedData.slotIndex)
self.sourceTooltip.icon:SetTexture(selectedData.pressedIcon)
self.sourceTooltip:SetHidden(false)
self:Refresh()
-- selectedData.quality is deprecated, included here for addon backwards compatibility
local functionalQuality = selectedData.functionalQuality or selectedData.quality
self:ColorizeText(self:GetBoosterRowForQuality(functionalQuality))
self.selectedItem = selectedData
if not self:HasSelections() then
self.resultTooltip:SetHidden(true)
self.slotContainer:SetHidden(true)
self:EnableQualityBridge(false)
end
self:SetInventoryActive(true)
if self.shouldActivateTabBar then
ZO_GamepadGenericHeader_Activate(self.owner.header)
end
self.spinner:Deactivate()
GAMEPAD_CRAFTING_RESULTS:SetCraftingTooltip(self.resultTooltip)
GAMEPAD_CRAFTING_RESULTS:SetTooltipAnimationSounds(ZO_SharedSmithingImprovement_GetImprovementTooltipSounds())
GAMEPAD_CRAFTING_RESULTS:ClearSecondaryTooltipAnimationControls()
GAMEPAD_CRAFTING_RESULTS:AddSecondaryTooltipAnimationControl(self.sourceTooltip)
GAMEPAD_CRAFTING_RESULTS:AddSecondaryTooltipAnimationControl(self.qualityBridge)
else
self.sourceTooltip.tip:ClearLines()
self.sourceTooltip:SetHidden(true)
GAMEPAD_CRAFTING_RESULTS:SetCraftingTooltip(nil)
self:ClearBoosterRowHighlight()
self.selectedItem = nil
self:Refresh()
end
end)