private void UpdateScreenMatchMode(ScreenMatchMode screenMatchMode, CanvasScaler scaler) { if (scaler.screenMatchMode != screenMatchMode) { scaler.screenMatchMode = screenMatchMode; } }
public void PushUnityEngineUICanvasScalerScreenMatchMode(RealStatePtr L, UnityEngine.UI.CanvasScaler.ScreenMatchMode val) { if (UnityEngineUICanvasScalerScreenMatchMode_TypeID == -1) { bool is_first; UnityEngineUICanvasScalerScreenMatchMode_TypeID = getTypeId(L, typeof(UnityEngine.UI.CanvasScaler.ScreenMatchMode), out is_first); if (UnityEngineUICanvasScalerScreenMatchMode_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.UI.CanvasScaler.ScreenMatchMode)); UnityEngineUICanvasScalerScreenMatchMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUICanvasScalerScreenMatchMode_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUICanvasScalerScreenMatchMode_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.UI.CanvasScaler.ScreenMatchMode ,value=" + val); } LuaAPI.lua_getref(L, UnityEngineUICanvasScalerScreenMatchMode_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); }
static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); UnityEngine.UI.CanvasScaler.ScreenMatchMode o = (UnityEngine.UI.CanvasScaler.ScreenMatchMode)arg0; LuaScriptMgr.Push(L, o); return(1); }
static int set_screenMathMode(IntPtr L) { try { UnityEngine.UI.CanvasScaler.ScreenMatchMode arg0 = (UnityEngine.UI.CanvasScaler.ScreenMatchMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.UI.CanvasScaler.ScreenMatchMode)); AppConst.screenMathMode = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e); } }
static int LoadUICallBack(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 9 && TypeChecker.CheckTypes(L, 1, typeof(UIManager), typeof(AssetLoader), typeof(WindowLayer), typeof(UnityEngine.Object), typeof(UIExtendType), typeof(UIOpenType), typeof(bool), typeof(bool), typeof(int))) { UIManager obj = (UIManager)ToLua.ToObject(L, 1); AssetLoader arg0 = (AssetLoader)ToLua.ToObject(L, 2); WindowLayer arg1 = (WindowLayer)ToLua.ToObject(L, 3); UnityEngine.Object arg2 = (UnityEngine.Object)ToLua.ToObject(L, 4); UIExtendType arg3 = (UIExtendType)ToLua.ToObject(L, 5); UIOpenType arg4 = (UIOpenType)ToLua.ToObject(L, 6); bool arg5 = LuaDLL.lua_toboolean(L, 7); bool arg6 = LuaDLL.lua_toboolean(L, 8); int arg7 = (int)LuaDLL.lua_tonumber(L, 9); UnityEngine.GameObject o = obj.LoadUICallBack(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); ToLua.Push(L, o); return(1); } else if (count == 12 && TypeChecker.CheckTypes(L, 1, typeof(UIManager), typeof(UnityEngine.UI.CanvasScaler.ScreenMatchMode), typeof(WindowLayer), typeof(float), typeof(AssetLoader), typeof(UnityEngine.Object), typeof(UIExtendType), typeof(UIOpenType), typeof(UILayerType), typeof(bool), typeof(bool), typeof(int))) { UIManager obj = (UIManager)ToLua.ToObject(L, 1); UnityEngine.UI.CanvasScaler.ScreenMatchMode arg0 = (UnityEngine.UI.CanvasScaler.ScreenMatchMode)ToLua.ToObject(L, 2); WindowLayer arg1 = (WindowLayer)ToLua.ToObject(L, 3); float arg2 = (float)LuaDLL.lua_tonumber(L, 4); AssetLoader arg3 = (AssetLoader)ToLua.ToObject(L, 5); UnityEngine.Object arg4 = (UnityEngine.Object)ToLua.ToObject(L, 6); UIExtendType arg5 = (UIExtendType)ToLua.ToObject(L, 7); UIOpenType arg6 = (UIOpenType)ToLua.ToObject(L, 8); UILayerType arg7 = (UILayerType)ToLua.ToObject(L, 9); bool arg8 = LuaDLL.lua_toboolean(L, 10); bool arg9 = LuaDLL.lua_toboolean(L, 11); int arg10 = (int)LuaDLL.lua_tonumber(L, 12); UnityEngine.GameObject o = obj.LoadUICallBack(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); ToLua.Push(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: UIManager.LoadUICallBack")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_screenMatchMode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.UI.CanvasScaler obj = (UnityEngine.UI.CanvasScaler)o; UnityEngine.UI.CanvasScaler.ScreenMatchMode arg0 = (UnityEngine.UI.CanvasScaler.ScreenMatchMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.UI.CanvasScaler.ScreenMatchMode)); obj.screenMatchMode = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index screenMatchMode on a nil value")); } }
static int get_screenMatchMode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.UI.CanvasScaler obj = (UnityEngine.UI.CanvasScaler)o; UnityEngine.UI.CanvasScaler.ScreenMatchMode ret = obj.screenMatchMode; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index screenMatchMode on a nil value")); } }
static StackObject *set_screenMatchMode_9(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.UI.CanvasScaler.ScreenMatchMode value = (UnityEngine.UI.CanvasScaler.ScreenMatchMode) typeof(UnityEngine.UI.CanvasScaler.ScreenMatchMode).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.CanvasScaler instance_of_this_method; instance_of_this_method = (UnityEngine.UI.CanvasScaler) typeof(UnityEngine.UI.CanvasScaler).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.screenMatchMode = value; return(__ret); }
public void Get(RealStatePtr L, int index, out UnityEngine.UI.CanvasScaler.ScreenMatchMode val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUICanvasScalerScreenMatchMode_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.CanvasScaler.ScreenMatchMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.UI.CanvasScaler.ScreenMatchMode"); } val = (UnityEngine.UI.CanvasScaler.ScreenMatchMode)e; } else { val = (UnityEngine.UI.CanvasScaler.ScreenMatchMode)objectCasters.GetCaster(typeof(UnityEngine.UI.CanvasScaler.ScreenMatchMode))(L, index, null); } }
public void UpdateUnityEngineUICanvasScalerScreenMatchMode(RealStatePtr L, int index, UnityEngine.UI.CanvasScaler.ScreenMatchMode val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUICanvasScalerScreenMatchMode_TypeID) { throw new Exception("invalid userdata for UnityEngine.UI.CanvasScaler.ScreenMatchMode"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.UI.CanvasScaler.ScreenMatchMode ,value=" + val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } }
static int CreateConstPanel(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(PanelManager), typeof(string), typeof(bool))) { PanelManager obj = (PanelManager)ToLua.ToObject(L, 1); string arg0 = ToLua.ToString(L, 2); bool arg1 = LuaDLL.lua_toboolean(L, 3); obj.CreateConstPanel(arg0, arg1); return(0); } else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(PanelManager), typeof(string), typeof(bool), typeof(bool))) { PanelManager obj = (PanelManager)ToLua.ToObject(L, 1); string arg0 = ToLua.ToString(L, 2); bool arg1 = LuaDLL.lua_toboolean(L, 3); bool arg2 = LuaDLL.lua_toboolean(L, 4); obj.CreateConstPanel(arg0, arg1, arg2); return(0); } else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(PanelManager), typeof(string), typeof(UIExtendType), typeof(object))) { PanelManager obj = (PanelManager)ToLua.ToObject(L, 1); string arg0 = ToLua.ToString(L, 2); UIExtendType arg1 = (UIExtendType)ToLua.ToObject(L, 3); object arg2 = ToLua.ToVarObject(L, 4); obj.CreateConstPanel(arg0, arg1, arg2); return(0); } else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(PanelManager), typeof(string), typeof(UIExtendType), typeof(object), typeof(int))) { PanelManager obj = (PanelManager)ToLua.ToObject(L, 1); string arg0 = ToLua.ToString(L, 2); UIExtendType arg1 = (UIExtendType)ToLua.ToObject(L, 3); object arg2 = ToLua.ToVarObject(L, 4); int arg3 = (int)LuaDLL.lua_tonumber(L, 5); obj.CreateConstPanel(arg0, arg1, arg2, arg3); return(0); } else if (count == 6 && TypeChecker.CheckTypes(L, 1, typeof(PanelManager), typeof(string), typeof(UIExtendType), typeof(LuaInterface.LuaFunction), typeof(object), typeof(bool))) { PanelManager obj = (PanelManager)ToLua.ToObject(L, 1); string arg0 = ToLua.ToString(L, 2); UIExtendType arg1 = (UIExtendType)ToLua.ToObject(L, 3); LuaFunction arg2 = ToLua.ToLuaFunction(L, 4); object arg3 = ToLua.ToVarObject(L, 5); bool arg4 = LuaDLL.lua_toboolean(L, 6); obj.CreateConstPanel(arg0, arg1, arg2, arg3, arg4); return(0); } else if (count == 6 && TypeChecker.CheckTypes(L, 1, typeof(PanelManager), typeof(string), typeof(UIExtendType), typeof(object), typeof(UnityEngine.UI.CanvasScaler.ScreenMatchMode), typeof(float))) { PanelManager obj = (PanelManager)ToLua.ToObject(L, 1); string arg0 = ToLua.ToString(L, 2); UIExtendType arg1 = (UIExtendType)ToLua.ToObject(L, 3); object arg2 = ToLua.ToVarObject(L, 4); UnityEngine.UI.CanvasScaler.ScreenMatchMode arg3 = (UnityEngine.UI.CanvasScaler.ScreenMatchMode)ToLua.ToObject(L, 5); float arg4 = (float)LuaDLL.lua_tonumber(L, 6); obj.CreateConstPanel(arg0, arg1, arg2, arg3, arg4); return(0); } else if (count == 10 && TypeChecker.CheckTypes(L, 1, typeof(PanelManager), typeof(string), typeof(UIExtendType), typeof(System.Action <UnityEngine.GameObject>), typeof(LuaInterface.LuaFunction), typeof(object), typeof(bool), typeof(UILayerType), typeof(bool), typeof(int))) { PanelManager obj = (PanelManager)ToLua.ToObject(L, 1); string arg0 = ToLua.ToString(L, 2); UIExtendType arg1 = (UIExtendType)ToLua.ToObject(L, 3); System.Action <UnityEngine.GameObject> arg2 = null; LuaTypes funcType4 = LuaDLL.lua_type(L, 4); if (funcType4 != LuaTypes.LUA_TFUNCTION) { arg2 = (System.Action <UnityEngine.GameObject>)ToLua.ToObject(L, 4); } else { LuaFunction func = ToLua.ToLuaFunction(L, 4); arg2 = DelegateFactory.CreateDelegate(typeof(System.Action <UnityEngine.GameObject>), func) as System.Action <UnityEngine.GameObject>; } LuaFunction arg3 = ToLua.ToLuaFunction(L, 5); object arg4 = ToLua.ToVarObject(L, 6); bool arg5 = LuaDLL.lua_toboolean(L, 7); UILayerType arg6 = (UILayerType)ToLua.ToObject(L, 8); bool arg7 = LuaDLL.lua_toboolean(L, 9); int arg8 = (int)LuaDLL.lua_tonumber(L, 10); obj.CreateConstPanel(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: PanelManager.CreateConstPanel")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static void Push(IntPtr L, UnityEngine.UI.CanvasScaler.ScreenMatchMode arg) { ToLua.Push(L, arg); }