static int BindClickHandler(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LRichText obj = (LRichText)ToLua.CheckObject(L, 1, typeof(LRichText)); System.Action <string> arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (System.Action <string>)ToLua.CheckObject(L, 2, typeof(System.Action <string>)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(System.Action <string>), func) as System.Action <string>; } obj.BindClickHandler(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_onClickHandler(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LRichText obj = (LRichText)o; System.Action <string> arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (System.Action <string>)ToLua.CheckObject(L, 2, typeof(System.Action <string>)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(System.Action <string>), func) as System.Action <string>; } obj.onClickHandler = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onClickHandler on a nil value" : e.Message)); } }
static int StartPrase(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); LRichText obj = (LRichText)ToLua.CheckObject(L, 1, typeof(LRichText)); bool o = obj.StartPrase(); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnPointerDown(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LRichText obj = (LRichText)ToLua.CheckObject(L, 1, typeof(LRichText)); UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); obj.OnPointerDown(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int PraseTotalString(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LRichText obj = (LRichText)ToLua.CheckObject(L, 1, typeof(LRichText)); string arg0 = ToLua.CheckString(L, 2); bool o = obj.PraseTotalString(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_maxLineWidth(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LRichText obj = (LRichText)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.maxLineWidth = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index maxLineWidth on a nil value" : e.Message)); } }
static int set_alignType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LRichText obj = (LRichText)o; RichAlignType arg0 = (RichAlignType)ToLua.CheckObject(L, 2, typeof(RichAlignType)); obj.alignType = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index alignType on a nil value" : e.Message)); } }
static int set_input(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LRichText obj = (LRichText)o; UnityEngine.UI.InputField arg0 = (UnityEngine.UI.InputField)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.UI.InputField)); obj.input = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index input on a nil value" : e.Message)); } }
static int set_textShadow(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LRichText obj = (LRichText)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.textShadow = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index textShadow on a nil value" : e.Message)); } }
static int get_linkTextColor(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LRichText obj = (LRichText)o; UnityEngine.Color ret = obj.linkTextColor; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index linkTextColor on a nil value" : e.Message)); } }
static int get_text(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LRichText obj = (LRichText)o; string ret = obj.text; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index text on a nil value" : e.Message)); } }
static int get_realLineWidth(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LRichText obj = (LRichText)o; int ret = obj.realLineWidth; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index realLineWidth on a nil value" : e.Message)); } }
static int get_onClickHandler(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LRichText obj = (LRichText)o; System.Action <string> ret = obj.onClickHandler; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onClickHandler on a nil value" : e.Message)); } }
static int get_alignType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LRichText obj = (LRichText)o; RichAlignType ret = obj.alignType; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index alignType on a nil value" : e.Message)); } }
static int get_input(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LRichText obj = (LRichText)o; UnityEngine.UI.InputField ret = obj.input; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index input on a nil value" : e.Message)); } }
static int get_RaycastTarget(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LRichText obj = (LRichText)o; bool ret = obj.RaycastTarget; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index RaycastTarget on a nil value" : e.Message)); } }
static int set_text(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LRichText obj = (LRichText)o; string arg0 = ToLua.CheckString(L, 2); obj.text = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index text on a nil value" : e.Message)); } }
static int set_linkTextColor(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LRichText obj = (LRichText)o; UnityEngine.Color arg0 = ToLua.ToColor(L, 2); obj.linkTextColor = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index linkTextColor on a nil value" : e.Message)); } }