LUA_FUNCTION handler = ( toluafix_ref_function(L,2,0));
self->setFrameEventCallFunc(=](cocostudio::timeline::Frame* frame){
toluafix_pushusertype_ccobject(L, frame->_ID, &frame->_luaID, (void*)frame, getLuaTypeName(frame, "ccs.Frame"));
LuaEngine::getInstance()->getLuaStack()->executeFunctionByHandler(handler, 1);
});
return 0;
LUA_FUNCTION handler = ( toluafix_ref_function(L,2,0));
self->addEventListener(=](cocos2d::Ref* ref,CheckBox::EventType eventType){
handleUIEvent(handler, ref, (int)eventType);
});
return 0;
lua_cocos2dx_ui_manual.cpp 还有不少