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

◆ OnDropReceived()

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

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

346 {
347 if( w.GetName() == "GridItem" )
348 {
349 return false;
350 }
351 Param p = m_OnDropReceived.Get( reciever );
352 Param2<Managed, string> param = Param2<Managed, string>.Cast( p );
353 if( param == NULL )
354 {
355 return false;
356 }
357
358 if( !param.param1 )
359 {
360 m_OnDropReceived.Remove( w );
361 }
362
363 Param param2 = new Param4<Widget, int, int, Widget>( w, x, y, reciever );
364 GetGame().GameScript.CallFunctionParams( param.param1, param.param2, NULL, param2 );
365
366 return true;
367 }
Icon x
Icon y
ScriptModule GameScript
Определения Game.c:12
ref map< Widget, ref Param > m_OnDropReceived
Определения WidgetEventHandler.c:8
proto native CGame GetGame()
proto volatile int CallFunctionParams(Class inst, string function, out void returnVal, Class parms)

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