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

◆ OnClick()

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

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

175 {
176 Param2<Managed, string> param = Param2<Managed, string>.Cast( m_OnClick.Get( w ) );
177 if( param == NULL )
178 {
179 return false;
180 }
181
182 if( !param.param1 )
183 {
184 m_OnClick.Remove( w );
185 }
186
187 Param param2 = new Param4<Widget, int, int, int>( w, x, y, button );
188 GetGame().GameScript.CallFunctionParams( param.param1, param.param2, NULL, param2 );
189
190 return true;
191 }
Icon x
Icon y
ScriptModule GameScript
Определения Game.c:12
ref map< Widget, ref Param > m_OnClick
Определения WidgetEventHandler.c:14
proto native CGame GetGame()
proto volatile int CallFunctionParams(Class inst, string function, out void returnVal, Class parms)

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