2353 lines
96 KiB
C#
2353 lines
96 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 = XLuaBase.lua_CSFunction;
|
|
#endif
|
|
|
|
using XLua;
|
|
using System.Collections.Generic;
|
|
|
|
|
|
namespace XLua.CSObjectWrap
|
|
{
|
|
using Utils = XLua.Utils;
|
|
|
|
public class SystemNetSocketsAddressFamilyWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(System.Net.Sockets.AddressFamily), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(System.Net.Sockets.AddressFamily), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(System.Net.Sockets.AddressFamily), L, null, 32, 0, 0);
|
|
|
|
Utils.RegisterEnumType(L, typeof(System.Net.Sockets.AddressFamily));
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(System.Net.Sockets.AddressFamily), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushSystemNetSocketsAddressFamily(L, (System.Net.Sockets.AddressFamily)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
try
|
|
{
|
|
translator.TranslateToEnumToTop(L, typeof(System.Net.Sockets.AddressFamily), 1);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
return LuaAPI.luaL_error(L, "cast to " + typeof(System.Net.Sockets.AddressFamily) + " exception:" + e);
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for System.Net.Sockets.AddressFamily! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class SystemNetSocketsSocketErrorWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(System.Net.Sockets.SocketError), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(System.Net.Sockets.SocketError), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(System.Net.Sockets.SocketError), L, null, 48, 0, 0);
|
|
|
|
Utils.RegisterEnumType(L, typeof(System.Net.Sockets.SocketError));
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(System.Net.Sockets.SocketError), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushSystemNetSocketsSocketError(L, (System.Net.Sockets.SocketError)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
try
|
|
{
|
|
translator.TranslateToEnumToTop(L, typeof(System.Net.Sockets.SocketError), 1);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
return LuaAPI.luaL_error(L, "cast to " + typeof(System.Net.Sockets.SocketError) + " exception:" + e);
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for System.Net.Sockets.SocketError! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineNetworkReachabilityWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.NetworkReachability), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.NetworkReachability), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.NetworkReachability), L, null, 4, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NotReachable", UnityEngine.NetworkReachability.NotReachable);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ReachableViaCarrierDataNetwork", UnityEngine.NetworkReachability.ReachableViaCarrierDataNetwork);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ReachableViaLocalAreaNetwork", UnityEngine.NetworkReachability.ReachableViaLocalAreaNetwork);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.NetworkReachability), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineNetworkReachability(L, (UnityEngine.NetworkReachability)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "NotReachable"))
|
|
{
|
|
translator.PushUnityEngineNetworkReachability(L, UnityEngine.NetworkReachability.NotReachable);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "ReachableViaCarrierDataNetwork"))
|
|
{
|
|
translator.PushUnityEngineNetworkReachability(L, UnityEngine.NetworkReachability.ReachableViaCarrierDataNetwork);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "ReachableViaLocalAreaNetwork"))
|
|
{
|
|
translator.PushUnityEngineNetworkReachability(L, UnityEngine.NetworkReachability.ReachableViaLocalAreaNetwork);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.NetworkReachability!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.NetworkReachability! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineCameraMonoOrStereoscopicEyeWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.Camera.MonoOrStereoscopicEye), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.Camera.MonoOrStereoscopicEye), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.Camera.MonoOrStereoscopicEye), L, null, 4, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.Camera.MonoOrStereoscopicEye.Left);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.Camera.MonoOrStereoscopicEye.Right);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Mono", UnityEngine.Camera.MonoOrStereoscopicEye.Mono);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.Camera.MonoOrStereoscopicEye), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineCameraMonoOrStereoscopicEye(L, (UnityEngine.Camera.MonoOrStereoscopicEye)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Left"))
|
|
{
|
|
translator.PushUnityEngineCameraMonoOrStereoscopicEye(L, UnityEngine.Camera.MonoOrStereoscopicEye.Left);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Right"))
|
|
{
|
|
translator.PushUnityEngineCameraMonoOrStereoscopicEye(L, UnityEngine.Camera.MonoOrStereoscopicEye.Right);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Mono"))
|
|
{
|
|
translator.PushUnityEngineCameraMonoOrStereoscopicEye(L, UnityEngine.Camera.MonoOrStereoscopicEye.Mono);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Camera.MonoOrStereoscopicEye!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Camera.MonoOrStereoscopicEye! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineCameraStereoscopicEyeWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.Camera.StereoscopicEye), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.Camera.StereoscopicEye), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.Camera.StereoscopicEye), L, null, 3, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.Camera.StereoscopicEye.Left);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.Camera.StereoscopicEye.Right);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.Camera.StereoscopicEye), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineCameraStereoscopicEye(L, (UnityEngine.Camera.StereoscopicEye)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Left"))
|
|
{
|
|
translator.PushUnityEngineCameraStereoscopicEye(L, UnityEngine.Camera.StereoscopicEye.Left);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Right"))
|
|
{
|
|
translator.PushUnityEngineCameraStereoscopicEye(L, UnityEngine.Camera.StereoscopicEye.Right);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Camera.StereoscopicEye!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Camera.StereoscopicEye! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineEventSystemsPointerEventDataFramePressStateWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.EventSystems.PointerEventData.FramePressState), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.EventSystems.PointerEventData.FramePressState), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.EventSystems.PointerEventData.FramePressState), L, null, 5, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Pressed", UnityEngine.EventSystems.PointerEventData.FramePressState.Pressed);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Released", UnityEngine.EventSystems.PointerEventData.FramePressState.Released);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PressedAndReleased", UnityEngine.EventSystems.PointerEventData.FramePressState.PressedAndReleased);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NotChanged", UnityEngine.EventSystems.PointerEventData.FramePressState.NotChanged);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.EventSystems.PointerEventData.FramePressState), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineEventSystemsPointerEventDataFramePressState(L, (UnityEngine.EventSystems.PointerEventData.FramePressState)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Pressed"))
|
|
{
|
|
translator.PushUnityEngineEventSystemsPointerEventDataFramePressState(L, UnityEngine.EventSystems.PointerEventData.FramePressState.Pressed);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Released"))
|
|
{
|
|
translator.PushUnityEngineEventSystemsPointerEventDataFramePressState(L, UnityEngine.EventSystems.PointerEventData.FramePressState.Released);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "PressedAndReleased"))
|
|
{
|
|
translator.PushUnityEngineEventSystemsPointerEventDataFramePressState(L, UnityEngine.EventSystems.PointerEventData.FramePressState.PressedAndReleased);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "NotChanged"))
|
|
{
|
|
translator.PushUnityEngineEventSystemsPointerEventDataFramePressState(L, UnityEngine.EventSystems.PointerEventData.FramePressState.NotChanged);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.EventSystems.PointerEventData.FramePressState!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.EventSystems.PointerEventData.FramePressState! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineEventSystemsPointerEventDataInputButtonWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.EventSystems.PointerEventData.InputButton), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.EventSystems.PointerEventData.InputButton), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.EventSystems.PointerEventData.InputButton), L, null, 4, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.EventSystems.PointerEventData.InputButton.Left);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.EventSystems.PointerEventData.InputButton.Right);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Middle", UnityEngine.EventSystems.PointerEventData.InputButton.Middle);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.EventSystems.PointerEventData.InputButton), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineEventSystemsPointerEventDataInputButton(L, (UnityEngine.EventSystems.PointerEventData.InputButton)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Left"))
|
|
{
|
|
translator.PushUnityEngineEventSystemsPointerEventDataInputButton(L, UnityEngine.EventSystems.PointerEventData.InputButton.Left);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Right"))
|
|
{
|
|
translator.PushUnityEngineEventSystemsPointerEventDataInputButton(L, UnityEngine.EventSystems.PointerEventData.InputButton.Right);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Middle"))
|
|
{
|
|
translator.PushUnityEngineEventSystemsPointerEventDataInputButton(L, UnityEngine.EventSystems.PointerEventData.InputButton.Middle);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.EventSystems.PointerEventData.InputButton!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.EventSystems.PointerEventData.InputButton! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineRectTransformAxisWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.RectTransform.Axis), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.RectTransform.Axis), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.RectTransform.Axis), L, null, 3, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Horizontal", UnityEngine.RectTransform.Axis.Horizontal);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Vertical", UnityEngine.RectTransform.Axis.Vertical);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.RectTransform.Axis), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineRectTransformAxis(L, (UnityEngine.RectTransform.Axis)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Horizontal"))
|
|
{
|
|
translator.PushUnityEngineRectTransformAxis(L, UnityEngine.RectTransform.Axis.Horizontal);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Vertical"))
|
|
{
|
|
translator.PushUnityEngineRectTransformAxis(L, UnityEngine.RectTransform.Axis.Vertical);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.RectTransform.Axis!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.RectTransform.Axis! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineRectTransformEdgeWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.RectTransform.Edge), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.RectTransform.Edge), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.RectTransform.Edge), L, null, 5, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.RectTransform.Edge.Left);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.RectTransform.Edge.Right);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Top", UnityEngine.RectTransform.Edge.Top);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Bottom", UnityEngine.RectTransform.Edge.Bottom);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.RectTransform.Edge), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineRectTransformEdge(L, (UnityEngine.RectTransform.Edge)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Left"))
|
|
{
|
|
translator.PushUnityEngineRectTransformEdge(L, UnityEngine.RectTransform.Edge.Left);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Right"))
|
|
{
|
|
translator.PushUnityEngineRectTransformEdge(L, UnityEngine.RectTransform.Edge.Right);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Top"))
|
|
{
|
|
translator.PushUnityEngineRectTransformEdge(L, UnityEngine.RectTransform.Edge.Top);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Bottom"))
|
|
{
|
|
translator.PushUnityEngineRectTransformEdge(L, UnityEngine.RectTransform.Edge.Bottom);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.RectTransform.Edge!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.RectTransform.Edge! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineRuntimePlatformWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.RuntimePlatform), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.RuntimePlatform), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.RuntimePlatform), L, null, 54, 0, 0);
|
|
|
|
Utils.RegisterEnumType(L, typeof(UnityEngine.RuntimePlatform));
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.RuntimePlatform), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineRuntimePlatform(L, (UnityEngine.RuntimePlatform)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
try
|
|
{
|
|
translator.TranslateToEnumToTop(L, typeof(UnityEngine.RuntimePlatform), 1);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
return LuaAPI.luaL_error(L, "cast to " + typeof(UnityEngine.RuntimePlatform) + " exception:" + e);
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.RuntimePlatform! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineTexture2DEXRFlagsWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.Texture2D.EXRFlags), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.Texture2D.EXRFlags), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.Texture2D.EXRFlags), L, null, 6, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", UnityEngine.Texture2D.EXRFlags.None);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OutputAsFloat", UnityEngine.Texture2D.EXRFlags.OutputAsFloat);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CompressZIP", UnityEngine.Texture2D.EXRFlags.CompressZIP);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CompressRLE", UnityEngine.Texture2D.EXRFlags.CompressRLE);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CompressPIZ", UnityEngine.Texture2D.EXRFlags.CompressPIZ);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.Texture2D.EXRFlags), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineTexture2DEXRFlags(L, (UnityEngine.Texture2D.EXRFlags)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "None"))
|
|
{
|
|
translator.PushUnityEngineTexture2DEXRFlags(L, UnityEngine.Texture2D.EXRFlags.None);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "OutputAsFloat"))
|
|
{
|
|
translator.PushUnityEngineTexture2DEXRFlags(L, UnityEngine.Texture2D.EXRFlags.OutputAsFloat);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "CompressZIP"))
|
|
{
|
|
translator.PushUnityEngineTexture2DEXRFlags(L, UnityEngine.Texture2D.EXRFlags.CompressZIP);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "CompressRLE"))
|
|
{
|
|
translator.PushUnityEngineTexture2DEXRFlags(L, UnityEngine.Texture2D.EXRFlags.CompressRLE);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "CompressPIZ"))
|
|
{
|
|
translator.PushUnityEngineTexture2DEXRFlags(L, UnityEngine.Texture2D.EXRFlags.CompressPIZ);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Texture2D.EXRFlags!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Texture2D.EXRFlags! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineTouchPhaseWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.TouchPhase), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.TouchPhase), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.TouchPhase), L, null, 6, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Began", UnityEngine.TouchPhase.Began);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Moved", UnityEngine.TouchPhase.Moved);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Stationary", UnityEngine.TouchPhase.Stationary);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Ended", UnityEngine.TouchPhase.Ended);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Canceled", UnityEngine.TouchPhase.Canceled);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.TouchPhase), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineTouchPhase(L, (UnityEngine.TouchPhase)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Began"))
|
|
{
|
|
translator.PushUnityEngineTouchPhase(L, UnityEngine.TouchPhase.Began);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Moved"))
|
|
{
|
|
translator.PushUnityEngineTouchPhase(L, UnityEngine.TouchPhase.Moved);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Stationary"))
|
|
{
|
|
translator.PushUnityEngineTouchPhase(L, UnityEngine.TouchPhase.Stationary);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Ended"))
|
|
{
|
|
translator.PushUnityEngineTouchPhase(L, UnityEngine.TouchPhase.Ended);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Canceled"))
|
|
{
|
|
translator.PushUnityEngineTouchPhase(L, UnityEngine.TouchPhase.Canceled);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.TouchPhase!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.TouchPhase! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUIGridLayoutGroupAxisWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.GridLayoutGroup.Axis), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.GridLayoutGroup.Axis), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.GridLayoutGroup.Axis), L, null, 3, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Horizontal", UnityEngine.UI.GridLayoutGroup.Axis.Horizontal);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Vertical", UnityEngine.UI.GridLayoutGroup.Axis.Vertical);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.GridLayoutGroup.Axis), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUIGridLayoutGroupAxis(L, (UnityEngine.UI.GridLayoutGroup.Axis)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Horizontal"))
|
|
{
|
|
translator.PushUnityEngineUIGridLayoutGroupAxis(L, UnityEngine.UI.GridLayoutGroup.Axis.Horizontal);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Vertical"))
|
|
{
|
|
translator.PushUnityEngineUIGridLayoutGroupAxis(L, UnityEngine.UI.GridLayoutGroup.Axis.Vertical);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.GridLayoutGroup.Axis!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.GridLayoutGroup.Axis! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUIGridLayoutGroupConstraintWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.GridLayoutGroup.Constraint), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.GridLayoutGroup.Constraint), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.GridLayoutGroup.Constraint), L, null, 4, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Flexible", UnityEngine.UI.GridLayoutGroup.Constraint.Flexible);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FixedColumnCount", UnityEngine.UI.GridLayoutGroup.Constraint.FixedColumnCount);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FixedRowCount", UnityEngine.UI.GridLayoutGroup.Constraint.FixedRowCount);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.GridLayoutGroup.Constraint), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUIGridLayoutGroupConstraint(L, (UnityEngine.UI.GridLayoutGroup.Constraint)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Flexible"))
|
|
{
|
|
translator.PushUnityEngineUIGridLayoutGroupConstraint(L, UnityEngine.UI.GridLayoutGroup.Constraint.Flexible);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "FixedColumnCount"))
|
|
{
|
|
translator.PushUnityEngineUIGridLayoutGroupConstraint(L, UnityEngine.UI.GridLayoutGroup.Constraint.FixedColumnCount);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "FixedRowCount"))
|
|
{
|
|
translator.PushUnityEngineUIGridLayoutGroupConstraint(L, UnityEngine.UI.GridLayoutGroup.Constraint.FixedRowCount);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.GridLayoutGroup.Constraint!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.GridLayoutGroup.Constraint! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUIGridLayoutGroupCornerWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.GridLayoutGroup.Corner), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.GridLayoutGroup.Corner), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.GridLayoutGroup.Corner), L, null, 5, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UpperLeft", UnityEngine.UI.GridLayoutGroup.Corner.UpperLeft);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UpperRight", UnityEngine.UI.GridLayoutGroup.Corner.UpperRight);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LowerLeft", UnityEngine.UI.GridLayoutGroup.Corner.LowerLeft);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LowerRight", UnityEngine.UI.GridLayoutGroup.Corner.LowerRight);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.GridLayoutGroup.Corner), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUIGridLayoutGroupCorner(L, (UnityEngine.UI.GridLayoutGroup.Corner)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "UpperLeft"))
|
|
{
|
|
translator.PushUnityEngineUIGridLayoutGroupCorner(L, UnityEngine.UI.GridLayoutGroup.Corner.UpperLeft);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "UpperRight"))
|
|
{
|
|
translator.PushUnityEngineUIGridLayoutGroupCorner(L, UnityEngine.UI.GridLayoutGroup.Corner.UpperRight);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "LowerLeft"))
|
|
{
|
|
translator.PushUnityEngineUIGridLayoutGroupCorner(L, UnityEngine.UI.GridLayoutGroup.Corner.LowerLeft);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "LowerRight"))
|
|
{
|
|
translator.PushUnityEngineUIGridLayoutGroupCorner(L, UnityEngine.UI.GridLayoutGroup.Corner.LowerRight);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.GridLayoutGroup.Corner!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.GridLayoutGroup.Corner! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUIImageFillMethodWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.FillMethod), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.FillMethod), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.FillMethod), L, null, 6, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Horizontal", UnityEngine.UI.Image.FillMethod.Horizontal);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Vertical", UnityEngine.UI.Image.FillMethod.Vertical);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Radial90", UnityEngine.UI.Image.FillMethod.Radial90);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Radial180", UnityEngine.UI.Image.FillMethod.Radial180);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Radial360", UnityEngine.UI.Image.FillMethod.Radial360);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.Image.FillMethod), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUIImageFillMethod(L, (UnityEngine.UI.Image.FillMethod)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Horizontal"))
|
|
{
|
|
translator.PushUnityEngineUIImageFillMethod(L, UnityEngine.UI.Image.FillMethod.Horizontal);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Vertical"))
|
|
{
|
|
translator.PushUnityEngineUIImageFillMethod(L, UnityEngine.UI.Image.FillMethod.Vertical);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Radial90"))
|
|
{
|
|
translator.PushUnityEngineUIImageFillMethod(L, UnityEngine.UI.Image.FillMethod.Radial90);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Radial180"))
|
|
{
|
|
translator.PushUnityEngineUIImageFillMethod(L, UnityEngine.UI.Image.FillMethod.Radial180);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Radial360"))
|
|
{
|
|
translator.PushUnityEngineUIImageFillMethod(L, UnityEngine.UI.Image.FillMethod.Radial360);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.FillMethod!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.FillMethod! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUIImageOrigin180Wrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.Origin180), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.Origin180), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.Origin180), L, null, 5, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Bottom", UnityEngine.UI.Image.Origin180.Bottom);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.UI.Image.Origin180.Left);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Top", UnityEngine.UI.Image.Origin180.Top);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.UI.Image.Origin180.Right);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.Image.Origin180), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUIImageOrigin180(L, (UnityEngine.UI.Image.Origin180)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Bottom"))
|
|
{
|
|
translator.PushUnityEngineUIImageOrigin180(L, UnityEngine.UI.Image.Origin180.Bottom);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Left"))
|
|
{
|
|
translator.PushUnityEngineUIImageOrigin180(L, UnityEngine.UI.Image.Origin180.Left);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Top"))
|
|
{
|
|
translator.PushUnityEngineUIImageOrigin180(L, UnityEngine.UI.Image.Origin180.Top);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Right"))
|
|
{
|
|
translator.PushUnityEngineUIImageOrigin180(L, UnityEngine.UI.Image.Origin180.Right);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.Origin180!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.Origin180! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUIImageOrigin360Wrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.Origin360), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.Origin360), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.Origin360), L, null, 5, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Bottom", UnityEngine.UI.Image.Origin360.Bottom);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.UI.Image.Origin360.Right);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Top", UnityEngine.UI.Image.Origin360.Top);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.UI.Image.Origin360.Left);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.Image.Origin360), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUIImageOrigin360(L, (UnityEngine.UI.Image.Origin360)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Bottom"))
|
|
{
|
|
translator.PushUnityEngineUIImageOrigin360(L, UnityEngine.UI.Image.Origin360.Bottom);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Right"))
|
|
{
|
|
translator.PushUnityEngineUIImageOrigin360(L, UnityEngine.UI.Image.Origin360.Right);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Top"))
|
|
{
|
|
translator.PushUnityEngineUIImageOrigin360(L, UnityEngine.UI.Image.Origin360.Top);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Left"))
|
|
{
|
|
translator.PushUnityEngineUIImageOrigin360(L, UnityEngine.UI.Image.Origin360.Left);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.Origin360!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.Origin360! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUIImageOrigin90Wrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.Origin90), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.Origin90), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.Origin90), L, null, 5, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BottomLeft", UnityEngine.UI.Image.Origin90.BottomLeft);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TopLeft", UnityEngine.UI.Image.Origin90.TopLeft);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TopRight", UnityEngine.UI.Image.Origin90.TopRight);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BottomRight", UnityEngine.UI.Image.Origin90.BottomRight);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.Image.Origin90), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUIImageOrigin90(L, (UnityEngine.UI.Image.Origin90)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "BottomLeft"))
|
|
{
|
|
translator.PushUnityEngineUIImageOrigin90(L, UnityEngine.UI.Image.Origin90.BottomLeft);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "TopLeft"))
|
|
{
|
|
translator.PushUnityEngineUIImageOrigin90(L, UnityEngine.UI.Image.Origin90.TopLeft);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "TopRight"))
|
|
{
|
|
translator.PushUnityEngineUIImageOrigin90(L, UnityEngine.UI.Image.Origin90.TopRight);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "BottomRight"))
|
|
{
|
|
translator.PushUnityEngineUIImageOrigin90(L, UnityEngine.UI.Image.Origin90.BottomRight);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.Origin90!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.Origin90! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUIImageOriginHorizontalWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.OriginHorizontal), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.OriginHorizontal), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.OriginHorizontal), L, null, 3, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.UI.Image.OriginHorizontal.Left);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.UI.Image.OriginHorizontal.Right);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.Image.OriginHorizontal), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUIImageOriginHorizontal(L, (UnityEngine.UI.Image.OriginHorizontal)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Left"))
|
|
{
|
|
translator.PushUnityEngineUIImageOriginHorizontal(L, UnityEngine.UI.Image.OriginHorizontal.Left);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Right"))
|
|
{
|
|
translator.PushUnityEngineUIImageOriginHorizontal(L, UnityEngine.UI.Image.OriginHorizontal.Right);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.OriginHorizontal!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.OriginHorizontal! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUIImageOriginVerticalWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.OriginVertical), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.OriginVertical), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.OriginVertical), L, null, 3, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Bottom", UnityEngine.UI.Image.OriginVertical.Bottom);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Top", UnityEngine.UI.Image.OriginVertical.Top);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.Image.OriginVertical), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUIImageOriginVertical(L, (UnityEngine.UI.Image.OriginVertical)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Bottom"))
|
|
{
|
|
translator.PushUnityEngineUIImageOriginVertical(L, UnityEngine.UI.Image.OriginVertical.Bottom);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Top"))
|
|
{
|
|
translator.PushUnityEngineUIImageOriginVertical(L, UnityEngine.UI.Image.OriginVertical.Top);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.OriginVertical!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.OriginVertical! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUIImageTypeWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.Type), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.Type), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.Type), L, null, 5, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Simple", UnityEngine.UI.Image.Type.Simple);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Sliced", UnityEngine.UI.Image.Type.Sliced);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Tiled", UnityEngine.UI.Image.Type.Tiled);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Filled", UnityEngine.UI.Image.Type.Filled);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.Image.Type), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUIImageType(L, (UnityEngine.UI.Image.Type)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Simple"))
|
|
{
|
|
translator.PushUnityEngineUIImageType(L, UnityEngine.UI.Image.Type.Simple);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Sliced"))
|
|
{
|
|
translator.PushUnityEngineUIImageType(L, UnityEngine.UI.Image.Type.Sliced);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Tiled"))
|
|
{
|
|
translator.PushUnityEngineUIImageType(L, UnityEngine.UI.Image.Type.Tiled);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Filled"))
|
|
{
|
|
translator.PushUnityEngineUIImageType(L, UnityEngine.UI.Image.Type.Filled);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.Type!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.Type! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUIInputFieldCharacterValidationWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.InputField.CharacterValidation), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.InputField.CharacterValidation), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.InputField.CharacterValidation), L, null, 7, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", UnityEngine.UI.InputField.CharacterValidation.None);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Integer", UnityEngine.UI.InputField.CharacterValidation.Integer);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Decimal", UnityEngine.UI.InputField.CharacterValidation.Decimal);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Alphanumeric", UnityEngine.UI.InputField.CharacterValidation.Alphanumeric);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Name", UnityEngine.UI.InputField.CharacterValidation.Name);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EmailAddress", UnityEngine.UI.InputField.CharacterValidation.EmailAddress);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.InputField.CharacterValidation), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUIInputFieldCharacterValidation(L, (UnityEngine.UI.InputField.CharacterValidation)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "None"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldCharacterValidation(L, UnityEngine.UI.InputField.CharacterValidation.None);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Integer"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldCharacterValidation(L, UnityEngine.UI.InputField.CharacterValidation.Integer);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Decimal"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldCharacterValidation(L, UnityEngine.UI.InputField.CharacterValidation.Decimal);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Alphanumeric"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldCharacterValidation(L, UnityEngine.UI.InputField.CharacterValidation.Alphanumeric);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Name"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldCharacterValidation(L, UnityEngine.UI.InputField.CharacterValidation.Name);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "EmailAddress"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldCharacterValidation(L, UnityEngine.UI.InputField.CharacterValidation.EmailAddress);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.InputField.CharacterValidation!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.InputField.CharacterValidation! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUIInputFieldContentTypeWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.InputField.ContentType), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.InputField.ContentType), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.InputField.ContentType), L, null, 11, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Standard", UnityEngine.UI.InputField.ContentType.Standard);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Autocorrected", UnityEngine.UI.InputField.ContentType.Autocorrected);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IntegerNumber", UnityEngine.UI.InputField.ContentType.IntegerNumber);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DecimalNumber", UnityEngine.UI.InputField.ContentType.DecimalNumber);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Alphanumeric", UnityEngine.UI.InputField.ContentType.Alphanumeric);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Name", UnityEngine.UI.InputField.ContentType.Name);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EmailAddress", UnityEngine.UI.InputField.ContentType.EmailAddress);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Password", UnityEngine.UI.InputField.ContentType.Password);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Pin", UnityEngine.UI.InputField.ContentType.Pin);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Custom", UnityEngine.UI.InputField.ContentType.Custom);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.InputField.ContentType), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUIInputFieldContentType(L, (UnityEngine.UI.InputField.ContentType)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Standard"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Standard);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Autocorrected"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Autocorrected);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "IntegerNumber"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.IntegerNumber);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "DecimalNumber"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.DecimalNumber);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Alphanumeric"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Alphanumeric);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Name"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Name);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "EmailAddress"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.EmailAddress);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Password"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Password);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Pin"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Pin);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Custom"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Custom);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.InputField.ContentType!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.InputField.ContentType! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUIInputFieldInputTypeWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.InputField.InputType), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.InputField.InputType), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.InputField.InputType), L, null, 4, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Standard", UnityEngine.UI.InputField.InputType.Standard);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoCorrect", UnityEngine.UI.InputField.InputType.AutoCorrect);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Password", UnityEngine.UI.InputField.InputType.Password);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.InputField.InputType), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUIInputFieldInputType(L, (UnityEngine.UI.InputField.InputType)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Standard"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldInputType(L, UnityEngine.UI.InputField.InputType.Standard);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoCorrect"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldInputType(L, UnityEngine.UI.InputField.InputType.AutoCorrect);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Password"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldInputType(L, UnityEngine.UI.InputField.InputType.Password);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.InputField.InputType!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.InputField.InputType! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUIInputFieldLineTypeWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.InputField.LineType), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.InputField.LineType), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.InputField.LineType), L, null, 4, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SingleLine", UnityEngine.UI.InputField.LineType.SingleLine);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MultiLineSubmit", UnityEngine.UI.InputField.LineType.MultiLineSubmit);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MultiLineNewline", UnityEngine.UI.InputField.LineType.MultiLineNewline);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.InputField.LineType), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUIInputFieldLineType(L, (UnityEngine.UI.InputField.LineType)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "SingleLine"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldLineType(L, UnityEngine.UI.InputField.LineType.SingleLine);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "MultiLineSubmit"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldLineType(L, UnityEngine.UI.InputField.LineType.MultiLineSubmit);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "MultiLineNewline"))
|
|
{
|
|
translator.PushUnityEngineUIInputFieldLineType(L, UnityEngine.UI.InputField.LineType.MultiLineNewline);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.InputField.LineType!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.InputField.LineType! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUIScrollbarDirectionWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Scrollbar.Direction), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.Scrollbar.Direction), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.Scrollbar.Direction), L, null, 5, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LeftToRight", UnityEngine.UI.Scrollbar.Direction.LeftToRight);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RightToLeft", UnityEngine.UI.Scrollbar.Direction.RightToLeft);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BottomToTop", UnityEngine.UI.Scrollbar.Direction.BottomToTop);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TopToBottom", UnityEngine.UI.Scrollbar.Direction.TopToBottom);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.Scrollbar.Direction), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUIScrollbarDirection(L, (UnityEngine.UI.Scrollbar.Direction)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "LeftToRight"))
|
|
{
|
|
translator.PushUnityEngineUIScrollbarDirection(L, UnityEngine.UI.Scrollbar.Direction.LeftToRight);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "RightToLeft"))
|
|
{
|
|
translator.PushUnityEngineUIScrollbarDirection(L, UnityEngine.UI.Scrollbar.Direction.RightToLeft);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "BottomToTop"))
|
|
{
|
|
translator.PushUnityEngineUIScrollbarDirection(L, UnityEngine.UI.Scrollbar.Direction.BottomToTop);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "TopToBottom"))
|
|
{
|
|
translator.PushUnityEngineUIScrollbarDirection(L, UnityEngine.UI.Scrollbar.Direction.TopToBottom);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Scrollbar.Direction!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Scrollbar.Direction! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUIScrollRectMovementTypeWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.ScrollRect.MovementType), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.ScrollRect.MovementType), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.ScrollRect.MovementType), L, null, 4, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Unrestricted", UnityEngine.UI.ScrollRect.MovementType.Unrestricted);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Elastic", UnityEngine.UI.ScrollRect.MovementType.Elastic);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Clamped", UnityEngine.UI.ScrollRect.MovementType.Clamped);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.ScrollRect.MovementType), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUIScrollRectMovementType(L, (UnityEngine.UI.ScrollRect.MovementType)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Unrestricted"))
|
|
{
|
|
translator.PushUnityEngineUIScrollRectMovementType(L, UnityEngine.UI.ScrollRect.MovementType.Unrestricted);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Elastic"))
|
|
{
|
|
translator.PushUnityEngineUIScrollRectMovementType(L, UnityEngine.UI.ScrollRect.MovementType.Elastic);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Clamped"))
|
|
{
|
|
translator.PushUnityEngineUIScrollRectMovementType(L, UnityEngine.UI.ScrollRect.MovementType.Clamped);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.ScrollRect.MovementType!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.ScrollRect.MovementType! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUIScrollRectScrollbarVisibilityWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility), L, null, 4, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Permanent", UnityEngine.UI.ScrollRect.ScrollbarVisibility.Permanent);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoHide", UnityEngine.UI.ScrollRect.ScrollbarVisibility.AutoHide);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoHideAndExpandViewport", UnityEngine.UI.ScrollRect.ScrollbarVisibility.AutoHideAndExpandViewport);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUIScrollRectScrollbarVisibility(L, (UnityEngine.UI.ScrollRect.ScrollbarVisibility)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Permanent"))
|
|
{
|
|
translator.PushUnityEngineUIScrollRectScrollbarVisibility(L, UnityEngine.UI.ScrollRect.ScrollbarVisibility.Permanent);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoHide"))
|
|
{
|
|
translator.PushUnityEngineUIScrollRectScrollbarVisibility(L, UnityEngine.UI.ScrollRect.ScrollbarVisibility.AutoHide);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoHideAndExpandViewport"))
|
|
{
|
|
translator.PushUnityEngineUIScrollRectScrollbarVisibility(L, UnityEngine.UI.ScrollRect.ScrollbarVisibility.AutoHideAndExpandViewport);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.ScrollRect.ScrollbarVisibility!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.ScrollRect.ScrollbarVisibility! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUISelectableTransitionWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Selectable.Transition), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.Selectable.Transition), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.Selectable.Transition), L, null, 5, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", UnityEngine.UI.Selectable.Transition.None);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ColorTint", UnityEngine.UI.Selectable.Transition.ColorTint);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SpriteSwap", UnityEngine.UI.Selectable.Transition.SpriteSwap);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Animation", UnityEngine.UI.Selectable.Transition.Animation);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.Selectable.Transition), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUISelectableTransition(L, (UnityEngine.UI.Selectable.Transition)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "None"))
|
|
{
|
|
translator.PushUnityEngineUISelectableTransition(L, UnityEngine.UI.Selectable.Transition.None);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "ColorTint"))
|
|
{
|
|
translator.PushUnityEngineUISelectableTransition(L, UnityEngine.UI.Selectable.Transition.ColorTint);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "SpriteSwap"))
|
|
{
|
|
translator.PushUnityEngineUISelectableTransition(L, UnityEngine.UI.Selectable.Transition.SpriteSwap);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Animation"))
|
|
{
|
|
translator.PushUnityEngineUISelectableTransition(L, UnityEngine.UI.Selectable.Transition.Animation);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Selectable.Transition!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Selectable.Transition! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUISliderDirectionWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Slider.Direction), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.Slider.Direction), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.Slider.Direction), L, null, 5, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LeftToRight", UnityEngine.UI.Slider.Direction.LeftToRight);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RightToLeft", UnityEngine.UI.Slider.Direction.RightToLeft);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BottomToTop", UnityEngine.UI.Slider.Direction.BottomToTop);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TopToBottom", UnityEngine.UI.Slider.Direction.TopToBottom);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.Slider.Direction), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUISliderDirection(L, (UnityEngine.UI.Slider.Direction)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "LeftToRight"))
|
|
{
|
|
translator.PushUnityEngineUISliderDirection(L, UnityEngine.UI.Slider.Direction.LeftToRight);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "RightToLeft"))
|
|
{
|
|
translator.PushUnityEngineUISliderDirection(L, UnityEngine.UI.Slider.Direction.RightToLeft);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "BottomToTop"))
|
|
{
|
|
translator.PushUnityEngineUISliderDirection(L, UnityEngine.UI.Slider.Direction.BottomToTop);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "TopToBottom"))
|
|
{
|
|
translator.PushUnityEngineUISliderDirection(L, UnityEngine.UI.Slider.Direction.TopToBottom);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Slider.Direction!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Slider.Direction! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class UnityEngineUIToggleToggleTransitionWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(UnityEngine.UI.Toggle.ToggleTransition), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(UnityEngine.UI.Toggle.ToggleTransition), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(UnityEngine.UI.Toggle.ToggleTransition), L, null, 3, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", UnityEngine.UI.Toggle.ToggleTransition.None);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Fade", UnityEngine.UI.Toggle.ToggleTransition.Fade);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(UnityEngine.UI.Toggle.ToggleTransition), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushUnityEngineUIToggleToggleTransition(L, (UnityEngine.UI.Toggle.ToggleTransition)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "None"))
|
|
{
|
|
translator.PushUnityEngineUIToggleToggleTransition(L, UnityEngine.UI.Toggle.ToggleTransition.None);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Fade"))
|
|
{
|
|
translator.PushUnityEngineUIToggleToggleTransition(L, UnityEngine.UI.Toggle.ToggleTransition.Fade);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Toggle.ToggleTransition!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Toggle.ToggleTransition! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class SystemDayOfWeekWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(System.DayOfWeek), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(System.DayOfWeek), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(System.DayOfWeek), L, null, 8, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Sunday", System.DayOfWeek.Sunday);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Monday", System.DayOfWeek.Monday);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Tuesday", System.DayOfWeek.Tuesday);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Wednesday", System.DayOfWeek.Wednesday);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Thursday", System.DayOfWeek.Thursday);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Friday", System.DayOfWeek.Friday);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Saturday", System.DayOfWeek.Saturday);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(System.DayOfWeek), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushSystemDayOfWeek(L, (System.DayOfWeek)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Sunday"))
|
|
{
|
|
translator.PushSystemDayOfWeek(L, System.DayOfWeek.Sunday);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Monday"))
|
|
{
|
|
translator.PushSystemDayOfWeek(L, System.DayOfWeek.Monday);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Tuesday"))
|
|
{
|
|
translator.PushSystemDayOfWeek(L, System.DayOfWeek.Tuesday);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Wednesday"))
|
|
{
|
|
translator.PushSystemDayOfWeek(L, System.DayOfWeek.Wednesday);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Thursday"))
|
|
{
|
|
translator.PushSystemDayOfWeek(L, System.DayOfWeek.Thursday);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Friday"))
|
|
{
|
|
translator.PushSystemDayOfWeek(L, System.DayOfWeek.Friday);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "Saturday"))
|
|
{
|
|
translator.PushSystemDayOfWeek(L, System.DayOfWeek.Saturday);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for System.DayOfWeek!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for System.DayOfWeek! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class DGTweeningEaseWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(DG.Tweening.Ease), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(DG.Tweening.Ease), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(DG.Tweening.Ease), L, null, 39, 0, 0);
|
|
|
|
Utils.RegisterEnumType(L, typeof(DG.Tweening.Ease));
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(DG.Tweening.Ease), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushDGTweeningEase(L, (DG.Tweening.Ease)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
try
|
|
{
|
|
translator.TranslateToEnumToTop(L, typeof(DG.Tweening.Ease), 1);
|
|
}
|
|
catch (System.Exception e)
|
|
{
|
|
return LuaAPI.luaL_error(L, "cast to " + typeof(DG.Tweening.Ease) + " exception:" + e);
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.Ease! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
public class DGTweeningRotateModeWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Utils.BeginObjectRegister(typeof(DG.Tweening.RotateMode), L, translator, 0, 0, 0, 0);
|
|
Utils.EndObjectRegister(typeof(DG.Tweening.RotateMode), L, translator, null, null, null, null, null);
|
|
|
|
Utils.BeginClassRegister(typeof(DG.Tweening.RotateMode), L, null, 5, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Fast", DG.Tweening.RotateMode.Fast);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FastBeyond360", DG.Tweening.RotateMode.FastBeyond360);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WorldAxisAdd", DG.Tweening.RotateMode.WorldAxisAdd);
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LocalAxisAdd", DG.Tweening.RotateMode.LocalAxisAdd);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
|
|
|
Utils.EndClassRegister(typeof(DG.Tweening.RotateMode), L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CastFrom(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
LuaTypes lua_type = LuaAPI.lua_type(L, 1);
|
|
if (lua_type == LuaTypes.LUA_TNUMBER)
|
|
{
|
|
translator.PushDGTweeningRotateMode(L, (DG.Tweening.RotateMode)LuaAPI.xlua_tointeger(L, 1));
|
|
}
|
|
|
|
else if(lua_type == LuaTypes.LUA_TSTRING)
|
|
{
|
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 1, "Fast"))
|
|
{
|
|
translator.PushDGTweeningRotateMode(L, DG.Tweening.RotateMode.Fast);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "FastBeyond360"))
|
|
{
|
|
translator.PushDGTweeningRotateMode(L, DG.Tweening.RotateMode.FastBeyond360);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "WorldAxisAdd"))
|
|
{
|
|
translator.PushDGTweeningRotateMode(L, DG.Tweening.RotateMode.WorldAxisAdd);
|
|
}
|
|
else if (LuaAPI.xlua_is_eq_str(L, 1, "LocalAxisAdd"))
|
|
{
|
|
translator.PushDGTweeningRotateMode(L, DG.Tweening.RotateMode.LocalAxisAdd);
|
|
}
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.RotateMode!");
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
{
|
|
return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.RotateMode! Expect number or string, got + " + lua_type);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
} |