- ingame/crafting/smithingcreation_shared.lua:821 --
self.traitList:SetOnSelectedDataChangedCallback(function(selectedData, oldData, selectedDuringRebuild)
self:OnResultParametersChanged()
end)
- ingame/retrait/gamepad/retraitstation_reconstruct_gamepad.lua:132 --
self.traitList:SetOnSelectedDataChangedCallback(function(selectedData, oldData, selectedDuringRebuild)
self.isTraitValid = selectedData.traitKnown
self.itemSetPieceData:SetOverrideTraitType(selectedData.type)
self:RefreshResultTooltip()
--Do not try to narrate if a craft is in progress, as the screen will close once it's done
if not self.isCraftInProgress then
SCREEN_NARRATION_MANAGER:QueueFocus(self.focus)
end
end)
- ingame/retrait/keyboard/retraitstation_reconstruct_keyboard.lua:137 --
self.traitList:SetOnSelectedDataChangedCallback(function(selectedData, oldData, selectedDuringRebuild)
self:SetSelectedTraitType(selectedData.traitType, selectedData.traitKnown)
end)