From 1cee93d63f19fd4e961b47f23cfa7621833e7d7f Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期一, 05 十一月 2018 13:49:26 +0800
Subject: [PATCH] Merge branch 'master' into leonard
---
Assets/XLua/Gen/UnityEngineUIButtonWrap.cs | 31 ++++++++++++++++++++++++++++++-
1 files changed, 30 insertions(+), 1 deletions(-)
diff --git a/Assets/XLua/Gen/UnityEngineUIButtonWrap.cs b/Assets/XLua/Gen/UnityEngineUIButtonWrap.cs
index 8e67088..f9195a8 100644
--- a/Assets/XLua/Gen/UnityEngineUIButtonWrap.cs
+++ b/Assets/XLua/Gen/UnityEngineUIButtonWrap.cs
@@ -21,12 +21,13 @@
{
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);
@@ -174,6 +175,34 @@
}
[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 {
--
Gitblit v1.8.0