static StackObject *HideWindowImmediately_8(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, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @dispose = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); FairyGUI.Window @win = (FairyGUI.Window) typeof(FairyGUI.Window).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); 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.HideWindowImmediately(@win, @dispose); return(__ret); }
static StackObject *PlayOneShotSound_37(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, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Single @volumeScale = *(float *)&ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.AudioClip @clip = (UnityEngine.AudioClip) typeof(UnityEngine.AudioClip).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); 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.PlayOneShotSound(@clip, @volumeScale); return(__ret); }
static int _m_DisableSound(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.GRoot gen_to_be_invoked = (FairyGUI.GRoot)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.DisableSound( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static StackObject *CenterOn_17(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, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @restraint = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); FairyGUI.GRoot @r = (FairyGUI.GRoot) typeof(FairyGUI.GRoot).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); FairyGUI.Window instance_of_this_method = (FairyGUI.Window) typeof(FairyGUI.Window).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.CenterOn(@r, @restraint); return(__ret); }
static int _m_SetContentScaleFactor(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.GRoot gen_to_be_invoked = (FairyGUI.GRoot)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { int _designResolutionX = LuaAPI.xlua_tointeger(L, 2); int _designResolutionY = LuaAPI.xlua_tointeger(L, 3); gen_to_be_invoked.SetContentScaleFactor(_designResolutionX, _designResolutionY); return(0); } if (gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <FairyGUI.UIContentScaler.ScreenMatchMode>(L, 4)) { int _designResolutionX = LuaAPI.xlua_tointeger(L, 2); int _designResolutionY = LuaAPI.xlua_tointeger(L, 3); FairyGUI.UIContentScaler.ScreenMatchMode _screenMatchMode; translator.Get(L, 4, out _screenMatchMode); gen_to_be_invoked.SetContentScaleFactor(_designResolutionX, _designResolutionY, _screenMatchMode); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.GRoot.SetContentScaleFactor!")); }
static StackObject *TogglePopup_25(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, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); FairyGUI.GObject @target = (FairyGUI.GObject) typeof(FairyGUI.GObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); FairyGUI.GObject @popup = (FairyGUI.GObject) typeof(FairyGUI.GObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); 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.TogglePopup(@popup, @target); return(__ret); }
static int _m_GetTopWindow(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.GRoot gen_to_be_invoked = (FairyGUI.GRoot)translator.FastGetCSObj(L, 1); { FairyGUI.Window gen_ret = gen_to_be_invoked.GetTopWindow( ); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_PlayOneShotSound(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.GRoot gen_to_be_invoked = (FairyGUI.GRoot)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <UnityEngine.AudioClip>(L, 2)) { UnityEngine.AudioClip _clip = (UnityEngine.AudioClip)translator.GetObject(L, 2, typeof(UnityEngine.AudioClip)); gen_to_be_invoked.PlayOneShotSound(_clip); return(0); } if (gen_param_count == 3 && translator.Assignable <UnityEngine.AudioClip>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { UnityEngine.AudioClip _clip = (UnityEngine.AudioClip)translator.GetObject(L, 2, typeof(UnityEngine.AudioClip)); float _volumeScale = (float)LuaAPI.lua_tonumber(L, 3); gen_to_be_invoked.PlayOneShotSound(_clip, _volumeScale); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.GRoot.PlayOneShotSound!")); }
static int _m_HideWindowImmediately(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.GRoot gen_to_be_invoked = (FairyGUI.GRoot)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <FairyGUI.Window>(L, 2)) { FairyGUI.Window _win = (FairyGUI.Window)translator.GetObject(L, 2, typeof(FairyGUI.Window)); gen_to_be_invoked.HideWindowImmediately(_win); return(0); } if (gen_param_count == 3 && translator.Assignable <FairyGUI.Window>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { FairyGUI.Window _win = (FairyGUI.Window)translator.GetObject(L, 2, typeof(FairyGUI.Window)); bool _dispose = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.HideWindowImmediately(_win, _dispose); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.GRoot.HideWindowImmediately!")); }
static int _m_ShowOn(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.Window gen_to_be_invoked = (FairyGUI.Window)translator.FastGetCSObj(L, 1); { FairyGUI.GRoot _r = (FairyGUI.GRoot)translator.GetObject(L, 2, typeof(FairyGUI.GRoot)); gen_to_be_invoked.ShowOn(_r); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ShowTooltips(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.GRoot gen_to_be_invoked = (FairyGUI.GRoot)translator.FastGetCSObj(L, 1); { string _msg = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.ShowTooltips(_msg); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static StackObject *DisplayObjectToGObject_19(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, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); FairyGUI.DisplayObject @obj = (FairyGUI.DisplayObject) typeof(FairyGUI.DisplayObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); 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); var result_of_this_method = instance_of_this_method.DisplayObjectToGObject(@obj); object obj_result_of_this_method = result_of_this_method; if (obj_result_of_this_method is CrossBindingAdaptorType) { return(ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance)); } return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
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 int _m_DisplayObjectToGObject(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.GRoot gen_to_be_invoked = (FairyGUI.GRoot)translator.FastGetCSObj(L, 1); { FairyGUI.DisplayObject _obj = (FairyGUI.DisplayObject)translator.GetObject(L, 2, typeof(FairyGUI.DisplayObject)); FairyGUI.GObject gen_ret = gen_to_be_invoked.DisplayObjectToGObject(_obj); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_HidePopup(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.GRoot gen_to_be_invoked = (FairyGUI.GRoot)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1) { gen_to_be_invoked.HidePopup( ); return(0); } if (gen_param_count == 2 && translator.Assignable <FairyGUI.GObject>(L, 2)) { FairyGUI.GObject _popup = (FairyGUI.GObject)translator.GetObject(L, 2, typeof(FairyGUI.GObject)); gen_to_be_invoked.HidePopup( _popup); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.GRoot.HidePopup!")); }