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

◆ UpdateInterval()

override void UpdateInterval ( )
protected

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

257 {
258 if (m_ActionInfo.m_InfoContextMask & EConstructionInfoCategories.MATERIALS_PRESENCE)
259 {
260 ActionInfoDataConstructionBase info = ActionInfoDataConstructionBase.Cast(m_ActionInfo);
261 ConstructionPart part = info.GetConstructionPart();
262
263 m_IconVisibleCount = 0;
264 ConstructionMaterialInfoIcon matIcon;
265 foreach (GenericIconBase icon : m_Icons)
266 {
267 Class.CastTo(matIcon,icon);
268
269 matIcon.SetConstructionPart(part);
270 matIcon.SetTargetEntity(EntityAI.Cast(m_Target.GetObject()));
271 //matIcon.InitMaterialInfo();
272 matIcon.UpdateInterval();
273 m_IconVisibleCount += matIcon.IsVisible();
274 }
275 }
276 else
277 {
278 m_IconVisibleCount = 0;
279 }
280
281 super.UpdateInterval(); //handles grid widget visibility
282 }
ref ActionTarget m_Target
Определения ActionBase.c:18
ActionInfoDataBase m_ActionInfo
Определения ActionInfoPanels.c:8
EConstructionInfoCategories
Определения ConstructionConstants.c:2
Super root of all classes in Enforce script.
Определения EnScript.c:11
Instanced construction part data classes for dynamic data, statics now stored on EntityType level in ...
Определения ConstructionPart.c:4
Определения GenericIcon.c:2
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo(), m_ActionInfo и m_Target.

Используется в OnShow(), Update() и UpdateTargetActionInfoPanel().