DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Combine()

void Icon::Combine ( Widget w,
int x,
int y,
Widget receiver )
inlineprotected

См. определение в файле Icon.c строка 704

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 }
719 if (!selectedIpw.GetItem())
720 {
721 return;
722 }
723 EntityAI selectedEntity = selectedIpw.GetItem();
724 EntityAI targetEntity = GetGame().GetPlayer().GetHumanInventory().GetEntityInHands();
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);
728 PerformCombination(selectedEntity, targetEntity, chosenInventoryAction);
729 }
class LogManager EntityAI
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
proto native DayZPlayer GetPlayer()
bool PerformCombination(EntityAI selectedEntity, EntityAI targetEntity, int combinationFlag, InventoryLocation ilSwapDst=null)
Определения Icon.c:518
proto native EntityAI GetItem()
proto native CGame GetGame()

Перекрестные ссылки InventoryCombinationFlags::ADD_AS_ATTACHMENT, InventoryCombinationFlags::ADD_AS_CARGO, InventoryCombinationFlags::COMBINE_QUANTITY2, ItemManager::GetChosenCombinationFlag(), GetGame(), ItemManager::GetInstance(), ItemPreviewWidget::GetItem(), CGame::GetPlayer(), ItemManager::HideDropzones(), name, InventoryCombinationFlags::PERFORM_ACTION, PerformCombination(), InventoryCombinationFlags::SET_ACTION, ItemManager::SetIsDragging(), x и y.