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

◆ UpdateInterval()

override void AttachmentCategoriesContainer::UpdateInterval ( )
inlineprotected

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

55 {
56 if( m_Entity )
57 {
58 if( m_Entity.GetInventory().IsInventoryLockedForLockType( HIDE_INV_FROM_SCRIPT ) || m_Hidden )
59 {
60 if( m_Body.Count() > 0 && !m_Hidden )
61 m_CollapsibleHeader.OnHide();
62 HideContent();
63 GetMainWidget().Show( false );
64 }
65 else
66 {
67 if( m_Body.Count() > 0 && !m_Hidden )
68 {
69 if( m_Body.Count() > 0 && !m_Hidden )
70 m_CollapsibleHeader.OnShow();
71 int i;
72 for (i = m_SlotsCount; i < m_Body.Count(); i++)
73 {
74 AttachmentCategoriesRow row = AttachmentCategoriesRow.Cast( m_Body[i] );
75 if (row)
76 {
77 if (m_Entity.CanDisplayAttachmentCategory( row.GetCategoryIdentifier() ))
78 {
79 if ( row.IsDisplayable() )
80 {
82 if (!row.IsVisible())
83 {
84 row.OnShow();
85 }
86 }
87 else
88 {
89 ShowInSlots( row.GetCategoryIdentifier(), false );
90 if (row.IsVisible())
91 {
92 row.OnHide();
93 }
94 }
95 }
96 else
97 {
98 ShowInSlots( row.GetCategoryIdentifier(), false );
99 if (row.IsVisible())
100 {
101 row.OnHide();
102 }
103 }
104 row.UpdateInterval();
105 }
106 else
107 {
108 ContainerWithCargo cargo = ContainerWithCargo.Cast(m_Body[i]);
109 if (cargo)
110 {
111 if (m_Entity.CanDisplayCargo())
112 {
113 m_CargoSlotsIcon.m_MainWidget.Show(true);
114 if (!cargo.IsVisible())
115 {
116 cargo.OnShow();
117 }
118 }
119 else
120 {
121 m_CargoSlotsIcon.m_MainWidget.Show(false);
122 if (cargo.IsVisible())
123 {
124 cargo.OnHide();
125 }
126 }
127 cargo.UpdateInterval();
128 }
129 RecomputeOpenedContainers();
130
131 }
132
133 }
134 for ( i = 0; i < m_SlotsCount; i++)
135 {
136 AttachmentCategoriesSlotsContainer slots = AttachmentCategoriesSlotsContainer.Cast( m_Body[i] );
137 {
138 if (slots.IsDisplayable())
139 {
140 slots.OnShow();
141 }
142 else
143 {
144 slots.OnHide();
145 }
146 }
147 }
148 }
149 GetMainWidget().Show( true );
150 }
151 }
152 }
EntityAI m_Entity
Определения ActionDebug.c:11
void ShowInSlots(string category, bool show)
override void UpdateInterval()
Определения AttachmentCategoriesRow.c:962
string GetCategoryIdentifier()
Определения AttachmentCategoriesRow.c:23
override bool IsDisplayable()
Определения ContainerWithCargo.c:19
bool m_Hidden
Определения CollapsibleContainer.c:4
ref CollapsibleHeader m_CollapsibleHeader
Определения CollapsibleContainer.c:3
override void OnShow()
Определения ClosableContainer.c:93

Перекрестные ссылки AttachmentCategoriesRow::GetCategoryIdentifier(), AttachmentCategoriesSlotsContainer::IsDisplayable(), ClosableContainer::IsDisplayable(), m_CargoSlotsIcon, CollapsibleContainer::m_CollapsibleHeader, m_Entity, CollapsibleContainer::m_Hidden, m_SlotsCount, Container::OnShow(), ShowInSlots() и AttachmentCategoriesRow::UpdateInterval().