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

◆ StartPeriodicMeasurement()

void PoweredOptic_Base::StartPeriodicMeasurement ( )
inlineprotected

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

81 {
82 if( !m_Timer )
83 {
84 m_Timer = new Timer( CALL_CATEGORY_GAMEPLAY );
85 }
86
87 m_Root = g_Game.GetWorkspace().CreateWidgets( m_LayoutPath );
88
89 // Either use root as text widget directly or find the text as children, arbitrary layout is supported now.
90 m_RangeText = TextWidget.Cast(m_Root);
91 if (!m_RangeText)
92 m_RangeText = TextWidget.Cast(m_Root.FindAnyWidget("RangeText"));
93
94 m_Timer.Run( GetMeasurementUpdateInterval(), this, "DoMeasurement", null, true );
95 }
DayZGame g_Game
Определения DayZGame.c:3942
Widget m_Root
Определения Rangefinder.c:6
string m_LayoutPath
Определения Rangefinder.c:9
ref Timer m_Timer
Определения Rangefinder.c:5
TextWidget m_RangeText
Определения Rangefinder.c:7
float GetMeasurementUpdateInterval()
Определения Rangefinder.c:44
const int CALL_CATEGORY_GAMEPLAY
Определения 3_Game/DayZ/tools/tools.c:10

Перекрестные ссылки CALL_CATEGORY_GAMEPLAY, g_Game, GetMeasurementUpdateInterval(), m_LayoutPath, m_RangeText, m_Root и m_Timer.

Используется в OnWorkStart().