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