static int SetContentScaleFactor(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.GRoot), typeof(int), typeof(int))) { FairyGUI.GRoot obj = (FairyGUI.GRoot)ToLua.ToObject(L, 1); int arg0 = (int)LuaDLL.lua_tonumber(L, 2); int arg1 = (int)LuaDLL.lua_tonumber(L, 3); obj.SetContentScaleFactor(arg0, arg1); return(0); } else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.GRoot), typeof(int), typeof(int), typeof(FairyGUI.UIContentScaler.ScreenMatchMode))) { FairyGUI.GRoot obj = (FairyGUI.GRoot)ToLua.ToObject(L, 1); int arg0 = (int)LuaDLL.lua_tonumber(L, 2); int arg1 = (int)LuaDLL.lua_tonumber(L, 3); FairyGUI.UIContentScaler.ScreenMatchMode arg2 = (FairyGUI.UIContentScaler.ScreenMatchMode)ToLua.ToObject(L, 4); obj.SetContentScaleFactor(arg0, arg1, arg2); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.GRoot.SetContentScaleFactor")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); FairyGUI.UIContentScaler.ScreenMatchMode o = (FairyGUI.UIContentScaler.ScreenMatchMode)arg0; ToLua.Push(L, o); return(1); }
static int get_screenMatchMode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.UIContentScaler obj = (FairyGUI.UIContentScaler)o; FairyGUI.UIContentScaler.ScreenMatchMode ret = obj.screenMatchMode; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index screenMatchMode on a nil value" : e.Message)); } }
static int set_screenMatchMode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.UIContentScaler obj = (FairyGUI.UIContentScaler)o; FairyGUI.UIContentScaler.ScreenMatchMode arg0 = (FairyGUI.UIContentScaler.ScreenMatchMode)ToLua.CheckObject(L, 2, typeof(FairyGUI.UIContentScaler.ScreenMatchMode)); obj.screenMatchMode = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index screenMatchMode on a nil value" : e.Message)); } }
static StackObject *SetContentScaleFactor_3(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 4); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); FairyGUI.UIContentScaler.ScreenMatchMode @screenMatchMode = (FairyGUI.UIContentScaler.ScreenMatchMode) typeof(FairyGUI.UIContentScaler.ScreenMatchMode).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Int32 @designResolutionY = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 3); System.Int32 @designResolutionX = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 4); FairyGUI.GRoot instance_of_this_method = (FairyGUI.GRoot) typeof(FairyGUI.GRoot).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.SetContentScaleFactor(@designResolutionX, @designResolutionY, @screenMatchMode); return(__ret); }
static void Push(IntPtr L, FairyGUI.UIContentScaler.ScreenMatchMode arg) { ToLua.Push(L, arg); }