Files
Main/Assets/GameAssets/Resources/GameUI/XLua/Gen/UITableWrap.cs
2025-01-25 04:38:09 +08:00

504 lines
20 KiB
C#

#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 UITableWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(UITable);
Utils.BeginObjectRegister(type, L, translator, 0, 2, 11, 12);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetChildList", _m_GetChildList);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reposition", _m_Reposition);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "columns", _g_get_columns);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "direction", _g_get_direction);
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, "cellAlignment", _g_get_cellAlignment);
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, "padding", _g_get_padding);
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, "columns", _s_set_columns);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "direction", _s_set_direction);
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, "cellAlignment", _s_set_cellAlignment);
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, "padding", _s_set_padding);
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, 1, 0, 0);
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)
{
UITable gen_ret = new UITable();
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 UITable constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetChildList(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UITable gen_to_be_invoked = (UITable)translator.FastGetCSObj(L, 1);
{
System.Collections.Generic.List<UnityEngine.Transform> 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_Reposition(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UITable gen_to_be_invoked = (UITable)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 _g_get_columns(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UITable gen_to_be_invoked = (UITable)translator.FastGetCSObj(L, 1);
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.columns);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_direction(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UITable gen_to_be_invoked = (UITable)translator.FastGetCSObj(L, 1);
translator.PushUITableDirection(L, gen_to_be_invoked.direction);
} 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);
UITable gen_to_be_invoked = (UITable)translator.FastGetCSObj(L, 1);
translator.PushUITableSorting(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);
UITable gen_to_be_invoked = (UITable)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_cellAlignment(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UITable gen_to_be_invoked = (UITable)translator.FastGetCSObj(L, 1);
translator.PushUIWidgetPivot(L, gen_to_be_invoked.cellAlignment);
} 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);
UITable gen_to_be_invoked = (UITable)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);
UITable gen_to_be_invoked = (UITable)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_padding(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UITable gen_to_be_invoked = (UITable)translator.FastGetCSObj(L, 1);
translator.PushUnityEngineVector2(L, gen_to_be_invoked.padding);
} 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);
UITable gen_to_be_invoked = (UITable)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);
UITable gen_to_be_invoked = (UITable)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);
UITable gen_to_be_invoked = (UITable)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);
UITable gen_to_be_invoked = (UITable)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_columns(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UITable gen_to_be_invoked = (UITable)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.columns = 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_direction(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UITable gen_to_be_invoked = (UITable)translator.FastGetCSObj(L, 1);
UITable.Direction gen_value;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)gen_value = (UITable.Direction)LuaAPI.lua_tonumber(L, 2);else translator.Get(L, 2, out gen_value);
gen_to_be_invoked.direction = 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);
UITable gen_to_be_invoked = (UITable)translator.FastGetCSObj(L, 1);
UITable.Sorting gen_value;if (LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TNUMBER)gen_value = (UITable.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);
UITable gen_to_be_invoked = (UITable)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_cellAlignment(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UITable gen_to_be_invoked = (UITable)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.cellAlignment = 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_hideInactive(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UITable gen_to_be_invoked = (UITable)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);
UITable gen_to_be_invoked = (UITable)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_padding(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UITable gen_to_be_invoked = (UITable)translator.FastGetCSObj(L, 1);
UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.padding = 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_onReposition(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
UITable gen_to_be_invoked = (UITable)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.onReposition = translator.GetDelegate<UITable.OnReposition>(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);
UITable gen_to_be_invoked = (UITable)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.onCustomSort = translator.GetDelegate<System.Comparison<UnityEngine.Transform>>(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);
UITable gen_to_be_invoked = (UITable)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;
}
}
}