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

◆ GetItemPreviewItem()

EntityAI HandsContainer::GetItemPreviewItem ( Widget w)
inlineprotected

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

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

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

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