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

◆ GetItemPreviewItem()

EntityAI AttachmentCategoriesRow::GetItemPreviewItem ( Widget w)
inlineprotected

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

606 {
607 ItemPreviewWidget ipw = ItemPreviewWidget.Cast( w.FindAnyWidget( "Render" ) );
608 if( !ipw )
609 {
610 string name = w.GetName();
611 name.Replace( "PanelWidget", "Render" );
612 ipw = ItemPreviewWidget.Cast( w.FindAnyWidget( name ) );
613 }
614 if( !ipw )
615 {
616 ipw = ItemPreviewWidget.Cast( w );
617 }
618 if( !ipw || !ipw.IsInherited( ItemPreviewWidget ) )
619 {
620 return null;
621 }
622 return ipw.GetItem();
623 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
proto native EntityAI GetItem()

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

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