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

◆ GetItemPreviewItem()

EntityAI HandsContainer::GetItemPreviewItem ( Widget w)
inlineprotected

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

437 {
438 ItemPreviewWidget ipw = ItemPreviewWidget.Cast( w.FindAnyWidget( "Render" ) );
439 if( !ipw )
440 {
441 string name = w.GetName();
442 name.Replace( "PanelWidget", "Render" );
443 ipw = ItemPreviewWidget.Cast( w.FindAnyWidget( name ) );
444 }
445
446 if( !ipw )
447 {
448 ipw = ItemPreviewWidget.Cast( w );
449 }
450
451 if( !ipw )
452 {
453 return null;
454 }
455
456 return ipw.GetItem();
457 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
proto native EntityAI GetItem()

Перекрестные ссылки ItemPreviewWidget::GetItem() и name.

Используется в DraggingOverGrid(), DropReceived() и TakeAsAttachment().