29 {
30 if ( m_SlotIcon )
31 {
32 bool show_radial_icon;
34 show_radial_icon = show_radial_icon && ( (
m_Entity.GetInventory().GetCargo() &&
m_Entity.CanDisplayCargo()) ||
m_Entity.GetSlotsCountCorrect() > 0 );
35 show_radial_icon = show_radial_icon && !
m_Entity.GetInventory().IsInventoryLockedForLockType( HIDE_INV_FROM_SCRIPT );
37 {
38 m_SlotIcon.GetRadialIconPanel().Show( true );
39 SetOpenForSlotIcon(show_radial_icon);
40 }
41 else
42 {
43 m_SlotIcon.GetRadialIconPanel().Show( false );
44 }
45 }
46 }
override bool IsDisplayable()