| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(UnityEngine.UI.Button); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 6, 1, 1); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 7, 1, 1); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerClick", _m_OnPointerClick); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSubmit", _m_OnSubmit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddListener", _m_AddListener); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAllListeners", _m_RemoveAllListeners); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetListener", _m_SetListener); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEnable", _m_SetEnable); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInteractable", _m_SetInteractable); |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SetListener(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | UnityEngine.UI.Button gen_to_be_invoked = (UnityEngine.UI.Button)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | UnityEngine.Events.UnityAction _action = translator.GetDelegate<UnityEngine.Events.UnityAction>(L, 2); |
| | | |
| | | gen_to_be_invoked.SetListener( _action ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SetEnable(RealStatePtr L) |
| | | { |
| | | try { |