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

◆ Combine()

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

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

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 }
715 if (!selectedIpw.GetItem())
716 {
717 return;
718 }
719 EntityAI selectedEntity = selectedIpw.GetItem();
720 EntityAI targetEntity = g_Game.GetPlayer().GetEntityInHands();
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);
724 PerformCombination(selectedEntity, targetEntity, chosenInventoryAction);
725 }
class LogManager EntityAI
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
DayZGame g_Game
Определения DayZGame.c:4074
bool PerformCombination(EntityAI selectedEntity, EntityAI targetEntity, int combinationFlag, InventoryLocation ilSwapDst=null)
Определения Icon.c:514
proto native EntityAI GetItem()

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