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

◆ UpdateInterval() [2/2]

override void ClosableContainer::UpdateInterval ( )
inlineprotected

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

231 {
232 if ( m_Entity )
233 {
234 if (m_CargoGrid)
235 {
236 bool hideCargo = m_Entity.GetInventory().IsInventoryLockedForLockType( HIDE_INV_FROM_SCRIPT ) || !m_Entity.CanDisplayCargo() || m_ForcedHide;
237 if (m_CargoGrid.IsVisible() && hideCargo)
238 {
239 HideCargo();
240 }
241 else if (!m_CargoGrid.IsVisible() && !hideCargo)
242 {
243 ShowCargo();
244 }
245
246 m_CargoGrid.UpdateInterval();
247 }
248
249 if ( m_SlotIcon )
250 {
251 bool hide = m_LockCargo || ItemManager.GetInstance().GetDraggedItem() == m_Entity;
252 if (!hide)
253 {
254 SetOpenForSlotIcon(IsOpened());
255 }
256 m_SlotIcon.GetRadialIconPanel().Show( !hide );
257
258 }
259
260 super.UpdateInterval();
261 }
262 }
EntityAI m_Entity
Определения ActionDebug.c:11
override bool IsOpened()
Определения ContainerWithCargo.c:102
ref CargoContainer m_CargoGrid
Определения ContainerWithCargo.c:3

Перекрестные ссылки ItemManager::GetDraggedItem(), ItemManager::GetInstance(), HideCargo(), IsOpened(), m_CargoGrid, m_Entity и ShowCargo().