#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Generic; namespace XLua.CSObjectWrap { using Utils = XLua.Utils; public class UIGridWrap { public static void __Register(RealStatePtr L) { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(UIGrid); Utils.BeginObjectRegister(type, L, translator, 0, 7, 13, 14); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetChildList", _m_GetChildList); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetChild", _m_GetChild); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIndex", _m_GetIndex); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddChild", _m_AddChild); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveChild", _m_RemoveChild); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reposition", _m_Reposition); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ConstrainWithinPanel", _m_ConstrainWithinPanel); Utils.RegisterFunc(L, Utils.GETTER_IDX, "arrangement", _g_get_arrangement); Utils.RegisterFunc(L, Utils.GETTER_IDX, "sorting", _g_get_sorting); Utils.RegisterFunc(L, Utils.GETTER_IDX, "pivot", _g_get_pivot); Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxPerLine", _g_get_maxPerLine); Utils.RegisterFunc(L, Utils.GETTER_IDX, "cellWidth", _g_get_cellWidth); Utils.RegisterFunc(L, Utils.GETTER_IDX, "cellHeight", _g_get_cellHeight); Utils.RegisterFunc(L, Utils.GETTER_IDX, "animateSmoothly", _g_get_animateSmoothly); Utils.RegisterFunc(L, Utils.GETTER_IDX, "hideInactive", _g_get_hideInactive); Utils.RegisterFunc(L, Utils.GETTER_IDX, "keepWithinPanel", _g_get_keepWithinPanel); Utils.RegisterFunc(L, Utils.GETTER_IDX, "LeftToRightLine", _g_get_LeftToRightLine); Utils.RegisterFunc(L, Utils.GETTER_IDX, "onReposition", _g_get_onReposition); Utils.RegisterFunc(L, Utils.GETTER_IDX, "onCustomSort", _g_get_onCustomSort); Utils.RegisterFunc(L, Utils.GETTER_IDX, "repositionWaitFrameCount", _g_get_repositionWaitFrameCount); Utils.RegisterFunc(L, Utils.SETTER_IDX, "repositionNow", _s_set_repositionNow); Utils.RegisterFunc(L, Utils.SETTER_IDX, "arrangement", _s_set_arrangement); Utils.RegisterFunc(L, Utils.SETTER_IDX, "sorting", _s_set_sorting); Utils.RegisterFunc(L, Utils.SETTER_IDX, "pivot", _s_set_pivot); Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxPerLine", _s_set_maxPerLine); Utils.RegisterFunc(L, Utils.SETTER_IDX, "cellWidth", _s_set_cellWidth); Utils.RegisterFunc(L, Utils.SETTER_IDX, "cellHeight", _s_set_cellHeight); Utils.RegisterFunc(L, Utils.SETTER_IDX, "animateSmoothly", _s_set_animateSmoothly); Utils.RegisterFunc(L, Utils.SETTER_IDX, "hideInactive", _s_set_hideInactive); Utils.RegisterFunc(L, Utils.SETTER_IDX, "keepWithinPanel", _s_set_keepWithinPanel); Utils.RegisterFunc(L, Utils.SETTER_IDX, "LeftToRightLine", _s_set_LeftToRightLine); Utils.RegisterFunc(L, Utils.SETTER_IDX, "onReposition", _s_set_onReposition); Utils.RegisterFunc(L, Utils.SETTER_IDX, "onCustomSort", _s_set_onCustomSort); Utils.RegisterFunc(L, Utils.SETTER_IDX, "repositionWaitFrameCount", _s_set_repositionWaitFrameCount); Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); Utils.RegisterFunc(L, Utils.CLS_IDX, "SortByName", _m_SortByName_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "SortHorizontal", _m_SortHorizontal_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "SortVertical", _m_SortVertical_xlua_st_); Utils.EndClassRegister(type, L, translator); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int __CreateInstance(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); if(LuaAPI.lua_gettop(L) == 1) { UIGrid gen_ret = new UIGrid(); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UIGrid constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetChildList(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); { System.Collections.Generic.List gen_ret = gen_to_be_invoked.GetChildList( ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetChild(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); { int _index = LuaAPI.xlua_tointeger(L, 2); UnityEngine.Transform gen_ret = gen_to_be_invoked.GetChild( _index ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetIndex(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); { UnityEngine.Transform _trans = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); int gen_ret = gen_to_be_invoked.GetIndex( _trans ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_AddChild(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable(L, 2)) { UnityEngine.Transform _trans = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); gen_to_be_invoked.AddChild( _trans ); return 0; } if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { UnityEngine.Transform _trans = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); bool _sort = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.AddChild( _trans, _sort ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UIGrid.AddChild!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RemoveChild(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); { UnityEngine.Transform _t = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); bool gen_ret = gen_to_be_invoked.RemoveChild( _t ); LuaAPI.lua_pushboolean(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SortByName_xlua_st_(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); { UnityEngine.Transform _a = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform)); UnityEngine.Transform _b = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); int gen_ret = UIGrid.SortByName( _a, _b ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SortHorizontal_xlua_st_(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); { UnityEngine.Transform _a = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform)); UnityEngine.Transform _b = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); int gen_ret = UIGrid.SortHorizontal( _a, _b ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SortVertical_xlua_st_(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); { UnityEngine.Transform _a = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform)); UnityEngine.Transform _b = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); int gen_ret = UIGrid.SortVertical( _a, _b ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Reposition(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Reposition( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ConstrainWithinPanel(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ConstrainWithinPanel( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_arrangement(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); translator.PushUIGridArrangement(L, gen_to_be_invoked.arrangement); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_sorting(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); translator.PushUIGridSorting(L, gen_to_be_invoked.sorting); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_pivot(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); translator.PushUIWidgetPivot(L, gen_to_be_invoked.pivot); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_maxPerLine(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxPerLine); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_cellWidth(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.cellWidth); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_cellHeight(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.cellHeight); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_animateSmoothly(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.animateSmoothly); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_hideInactive(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hideInactive); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_keepWithinPanel(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.keepWithinPanel); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_LeftToRightLine(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.LeftToRightLine); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_onReposition(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.onReposition); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_onCustomSort(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.onCustomSort); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_repositionWaitFrameCount(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.repositionWaitFrameCount); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_repositionNow(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); gen_to_be_invoked.repositionNow = LuaAPI.lua_toboolean(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_arrangement(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); UIGrid.Arrangement gen_value;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)gen_value = (UIGrid.Arrangement)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out gen_value); gen_to_be_invoked.arrangement = gen_value; } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_sorting(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); UIGrid.Sorting gen_value;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)gen_value = (UIGrid.Sorting)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out gen_value); gen_to_be_invoked.sorting = gen_value; } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_pivot(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); UIWidget.Pivot gen_value;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)gen_value = (UIWidget.Pivot)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out gen_value); gen_to_be_invoked.pivot = gen_value; } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_maxPerLine(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); gen_to_be_invoked.maxPerLine = LuaAPI.xlua_tointeger(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_cellWidth(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); gen_to_be_invoked.cellWidth = (float)LuaAPI.lua_tonumber(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_cellHeight(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); gen_to_be_invoked.cellHeight = (float)LuaAPI.lua_tonumber(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_animateSmoothly(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); gen_to_be_invoked.animateSmoothly = LuaAPI.lua_toboolean(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_hideInactive(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); gen_to_be_invoked.hideInactive = LuaAPI.lua_toboolean(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_keepWithinPanel(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); gen_to_be_invoked.keepWithinPanel = LuaAPI.lua_toboolean(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_LeftToRightLine(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); gen_to_be_invoked.LeftToRightLine = LuaAPI.lua_toboolean(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_onReposition(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); gen_to_be_invoked.onReposition = translator.GetDelegate(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_onCustomSort(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); gen_to_be_invoked.onCustomSort = translator.GetDelegate>(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_repositionWaitFrameCount(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); UIGrid gen_to_be_invoked = (UIGrid)translator.FastGetCSObj(L, 1); gen_to_be_invoked.repositionWaitFrameCount = LuaAPI.xlua_tointeger(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }