701 {
702 ItemManager.GetInstance().HideDropzones();
703 ItemManager.GetInstance().SetIsDragging(false);
704 ItemPreviewWidget selectedIpw = ItemPreviewWidget.Cast(w.FindAnyWidget("Render"));
705 if (!selectedIpw)
706 {
707 string name = w.GetName();
708 name.Replace(
"PanelWidget",
"Render");
709 selectedIpw = ItemPreviewWidget.Cast(w.FindAnyWidget(
name ));
710 }
711 if (!selectedIpw)
712 {
713 selectedIpw = ItemPreviewWidget.Cast(w);
714 }
716 {
717 return;
718 }
721 static int testedFlags = InventoryCombinationFlags.SET_ACTION | InventoryCombinationFlags.PERFORM_ACTION | InventoryCombinationFlags.COMBINE_QUANTITY2 | InventoryCombinationFlags.ADD_AS_CARGO | InventoryCombinationFlags.ADD_AS_ATTACHMENT;
722
723 int chosenInventoryAction = ItemManager.GetChosenCombinationFlag(selectedEntity, targetEntity, testedFlags);
725 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
bool PerformCombination(EntityAI selectedEntity, EntityAI targetEntity, int combinationFlag, InventoryLocation ilSwapDst=null)