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

◆ OnDrop()

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

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

308 {
309 Param2<Managed, string> param = Param2<Managed, string>.Cast( m_OnDrop.Get( w ) );
310 if( param == NULL )
311 {
312 return false;
313 }
314
315 if( !param.param1 )
316 {
317 m_OnDrop.Remove( w );
318 }
319
320 Param param2 = new Param3<Widget, int, int>( w, x, y );
321 GetGame().GameScript.CallFunctionParams( param.param1, param.param2, NULL, param2 );
322
323 return true;
324 }
Icon x
Icon y
ScriptModule GameScript
Определения Game.c:12
ref map< Widget, ref Param > m_OnDrop
Определения WidgetEventHandler.c:10
proto native CGame GetGame()
proto volatile int CallFunctionParams(Class inst, string function, out void returnVal, Class parms)

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