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

◆ OnDrag()

override bool WidgetEventHandler::OnDrag ( Widget w,
int x,
int y )
inlineprotected

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

289 {
290 Param2<Managed, string> param = Param2<Managed, string>.Cast( m_OnDrag.Get( w ) );
291 if( param == NULL )
292 {
293 return false;
294 }
295
296 if( !param.param1 )
297 {
298 m_OnDrag.Remove( w );
299 }
300
301 Param param2 = new Param3<Widget, int, int>( w, x, y );
302 GetGame().GameScript.CallFunctionParams( param.param1, param.param2, NULL, param2 );
303
304 return true;
305 }
Icon x
Icon y
ScriptModule GameScript
Определения Game.c:12
ref map< Widget, ref Param > m_OnDrag
Определения WidgetEventHandler.c:9
proto native CGame GetGame()
proto volatile int CallFunctionParams(Class inst, string function, out void returnVal, Class parms)

Перекрестные ссылки ScriptModule::CallFunctionParams(), CGame::GameScript, GetGame(), m_OnDrag, x и y.