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

◆ OnFrame()

void PluginBase::OnFrame ( )
inlineprivate

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

241 {
242 for ( int i = 0; i < m_MouseButtons.Count(); ++i )
243 {
244 MouseButtonInfo info = m_MouseButtons.Get(i);
245
246 if ( info.IsButtonDown() )
247 {
248 int time_curr = GetGame().GetTime();
249 int time_hold = info.GetTimeLastPress() + HOLD_CLICK_TIME_MIN;
250
251 if ( time_hold < time_curr )
252 {
253 //Log("MB_EVENT_DRAG");
254
256 }
257 }
258 }
259 }
proto int GetTime()
returns mission time in milliseconds
int GetTimeLastPress()
Определения MouseButtonInfo.c:19
bool IsButtonDown()
Определения MouseButtonInfo.c:39
int GetButtonID()
Определения MouseButtonInfo.c:14
ref array< ref MouseButtonInfo > m_MouseButtons
Определения PluginKeyBinding.c:282
void OnMouse(int event_id, int button)
Определения PluginKeyBinding.c:337
const int HOLD_CLICK_TIME_MIN
Определения PluginKeyBinding.c:279
proto native CGame GetGame()
const int MB_EVENT_DRAG
Определения PluginKeyBinding.c:11

Перекрестные ссылки MouseButtonInfo::GetButtonID(), GetGame(), CGame::GetTime(), MouseButtonInfo::GetTimeLastPress(), HOLD_CLICK_TIME_MIN, MouseButtonInfo::IsButtonDown(), m_MouseButtons, MB_EVENT_DRAG и OnMouse().

Используется в OnDestroy() и OnInit().