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

◆ OnMouseButtonDown()

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

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

251 {
252 Param2<Managed, string> param = Param2<Managed, string>.Cast( m_OnMouseButtonDownRegister.Get( w ) );
253 if( param == NULL )
254 {
255 return false;
256 }
257
258 if( !param.param1 )
259 {
260 m_OnMouseButtonDownRegister.Remove( w );
261 }
262
263 Param param2 = new Param4<Widget, int, int, int>( w, x, y, button );
264 GetGame().GameScript.CallFunctionParams( param.param1, param.param2, NULL, param2 );
265
266 return true;
267 }
Icon x
Icon y
ScriptModule GameScript
Определения Game.c:12
ref map< Widget, ref Param > m_OnMouseButtonDownRegister
Определения WidgetEventHandler.c:5
proto native CGame GetGame()
proto volatile int CallFunctionParams(Class inst, string function, out void returnVal, Class parms)

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