540 {
541 ItemPreviewWidget ipw = ItemPreviewWidget.Cast( w.FindAnyWidget("Render") );
542 if( !ipw )
543 {
544 string name = w.GetName();
545 name.Replace(
"PanelWidget",
"Render" );
546 ipw = ItemPreviewWidget.Cast( w.FindAnyWidget(
name ) );
547 }
548 if( !ipw )
549 {
550 ipw = ItemPreviewWidget.Cast( w );
551 }
552
553 if( !ipw.IsInherited( ItemPreviewWidget ) )
554 {
555 return;
556 }
557
560
561 if( item )
562 {
563 if( !item.GetInventory().CanRemoveEntity() )
564 return;
565
566 if( player.CanDropEntity( item ) )
567 {
568 if( item.GetTargetQuantityMax() < item.GetQuantity() )
569 item.SplitIntoStackMaxClient( null, -1 );
570 else
571 player.PhysicalPredictiveDropItem( item );
572 }
573 }
574 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
class GP5GasMask extends MaskBase ItemBase
proto native CGame GetGame()