public GameEntity SetUI(UnityEngine.CanvasGroup newGameControlsCanvasGroup, UnityEngine.CanvasGroup newEndGameCanvasGroup, TMPro.TextMeshProUGUI newGameResultText, UnityEngine.UI.Button newAttackButton, UnityEngine.UI.Button newSwitchButton, UnityEngine.UI.Button newRestartGameButton) { if (hasUI) { throw new Entitas.EntitasException("Could not set UI!\n" + this + " already has an entity with UIComponent!", "You should check if the context already has a uIEntity before setting it or use context.ReplaceUI()."); } var entity = CreateEntity(); entity.AddUI(newGameControlsCanvasGroup, newEndGameCanvasGroup, newGameResultText, newAttackButton, newSwitchButton, newRestartGameButton); return(entity); }
static int _g_get_alpha(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasGroup gen_to_be_invoked = (UnityEngine.CanvasGroup)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.alpha); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _g_get_blocksRaycasts(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasGroup __cl_gen_to_be_invoked = (UnityEngine.CanvasGroup)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.blocksRaycasts); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _s_set_ignoreParentGroups(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasGroup __cl_gen_to_be_invoked = (UnityEngine.CanvasGroup)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.ignoreParentGroups = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
public void ReplaceUI(UnityEngine.CanvasGroup newGameControlsCanvasGroup, UnityEngine.CanvasGroup newEndGameCanvasGroup, TMPro.TextMeshProUGUI newGameResultText, UnityEngine.UI.Button newAttackButton, UnityEngine.UI.Button newSwitchButton, UnityEngine.UI.Button newRestartGameButton) { var index = GameComponentsLookup.UI; var component = (UIComponent)CreateComponent(index, typeof(UIComponent)); component.gameControlsCanvasGroup = newGameControlsCanvasGroup; component.endGameCanvasGroup = newEndGameCanvasGroup; component.gameResultText = newGameResultText; component.attackButton = newAttackButton; component.switchButton = newSwitchButton; component.restartGameButton = newRestartGameButton; ReplaceComponent(index, component); }
public void ReplaceUI(UnityEngine.CanvasGroup newGameControlsCanvasGroup, UnityEngine.CanvasGroup newEndGameCanvasGroup, TMPro.TextMeshProUGUI newGameResultText, UnityEngine.UI.Button newAttackButton, UnityEngine.UI.Button newSwitchButton, UnityEngine.UI.Button newRestartGameButton) { var entity = uIEntity; if (entity == null) { entity = SetUI(newGameControlsCanvasGroup, newEndGameCanvasGroup, newGameResultText, newAttackButton, newSwitchButton, newRestartGameButton); } else { entity.ReplaceUI(newGameControlsCanvasGroup, newEndGameCanvasGroup, newGameResultText, newAttackButton, newSwitchButton, newRestartGameButton); } }
public override void ReadFrom(object obj) { base.ReadFrom(obj); if (obj == null) { return; } UnityEngine.CanvasGroup o = (UnityEngine.CanvasGroup)obj; alpha = o.alpha; interactable = o.interactable; blocksRaycasts = o.blocksRaycasts; ignoreParentGroups = o.ignoreParentGroups; }
public override object WriteTo(object obj, System.Collections.Generic.Dictionary <long, UnityEngine.Object> objects) { obj = base.WriteTo(obj, objects); if (obj == null) { return(null); } UnityEngine.CanvasGroup o = (UnityEngine.CanvasGroup)obj; o.alpha = alpha; o.interactable = interactable; o.blocksRaycasts = blocksRaycasts; o.ignoreParentGroups = ignoreParentGroups; return(o); }
protected override void Init() { if (null == m_target) { return; } // end if m_CanvasGroup = m_target.GetComponent <UnityEngine.CanvasGroup>(); if (null == m_CanvasGroup) { return; } // end if m_beginAlpha = m_CanvasGroup.alpha; }
int __CreateInstanceUnityEngineCanvasGroup(RealStatePtr L, int gen_param_count) { ObjectTranslator translator = this; if (gen_param_count == 1) { UnityEngine.CanvasGroup gen_ret = new UnityEngine.CanvasGroup(); translator.Push(L, gen_ret); return(1); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CanvasGroup constructor!")); }
static StackObject *get_interactable_2(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, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.CanvasGroup instance_of_this_method = (UnityEngine.CanvasGroup) typeof(UnityEngine.CanvasGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.interactable; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return(__ret + 1); }
static StackObject *get_alpha_1(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, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.CanvasGroup instance_of_this_method = (UnityEngine.CanvasGroup) typeof(UnityEngine.CanvasGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.alpha; __ret->ObjectType = ObjectTypes.Float; *(float *)&__ret->Value = result_of_this_method; return(__ret + 1); }
static StackObject *set_alpha_1(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); System.Single @value = *(float *)&ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.CanvasGroup instance_of_this_method = (UnityEngine.CanvasGroup) typeof(UnityEngine.CanvasGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.alpha = value; return(__ret); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { UnityEngine.CanvasGroup __cl_gen_ret = new UnityEngine.CanvasGroup(); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CanvasGroup constructor!")); }
static StackObject *set_blocksRaycasts_1(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); System.Boolean @value = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.CanvasGroup instance_of_this_method = (UnityEngine.CanvasGroup) typeof(UnityEngine.CanvasGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.blocksRaycasts = value; return(__ret); }
int UnityEngineCanvasGroup_m_IsRaycastLocationValid(RealStatePtr L, int gen_param_count) { ObjectTranslator translator = this; UnityEngine.CanvasGroup gen_to_be_invoked = (UnityEngine.CanvasGroup)translator.FastGetCSObj(L, 1); { UnityEngine.Vector2 _sp; translator.Get(L, 2, out _sp); UnityEngine.Camera _eventCamera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); bool gen_ret = gen_to_be_invoked.IsRaycastLocationValid(_sp, _eventCamera); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } }
static StackObject *DOFade_0(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 @duration = *(float *)&ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Single @endValue = *(float *)&ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 3); UnityEngine.CanvasGroup @target = (UnityEngine.CanvasGroup) typeof(UnityEngine.CanvasGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = DG.Tweening.ShortcutExtensions46.DOFade(@target, @endValue, @duration); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static int _m_GetCanvasGroup_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { UnityEngine.Transform trans = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform)); UnityEngine.CanvasGroup __cl_gen_ret = LuaHelper.GetCanvasGroup(trans); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static StackObject *IsRaycastLocationValid_8(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, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.Camera @eventCamera = (UnityEngine.Camera) typeof(UnityEngine.Camera).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.Vector2 @sp = (UnityEngine.Vector2) typeof(UnityEngine.Vector2).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); UnityEngine.CanvasGroup instance_of_this_method = (UnityEngine.CanvasGroup) typeof(UnityEngine.CanvasGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.IsRaycastLocationValid(@sp, @eventCamera); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return(__ret + 1); }
static int _m_IsRaycastLocationValid(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.CanvasGroup __cl_gen_to_be_invoked = (UnityEngine.CanvasGroup)translator.FastGetCSObj(L, 1); try { { UnityEngine.Vector2 sp; translator.Get(L, 2, out sp); UnityEngine.Camera eventCamera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); bool __cl_gen_ret = __cl_gen_to_be_invoked.IsRaycastLocationValid(sp, eventCamera); LuaAPI.lua_pushboolean(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
public static TARGET blocksRaycastsTransition(this TARGET target, bool value, float duration) { Method.LeanCanvasGroupBlocksRaycasts.Register(target, value, duration); return(target); }
public static TARGET alphaTransition(this TARGET target, float value, float duration, LeanEase ease = LeanEase.Smooth) { Method.LeanCanvasGroupAlpha.Register(target, value, duration, ease); return(target); }
public void __Gen_Delegate_Imp15(UnityEngine.GameObject p0, XLua.LuaTable p1, UnityEngine.CanvasGroup p2) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) { #endif RealStatePtr L = luaEnv.rawL; int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); ObjectTranslator translator = luaEnv.translator; translator.Push(L, p0); translator.Push(L, p1); translator.Push(L, p2); PCall(L, 3, 0, errFunc); LuaAPI.lua_settop(L, errFunc - 1); #if THREAD_SAFE || HOTFIX_ENABLE } #endif }
public static TARGET interactableTransition(this TARGET target, bool value, float duration) { Method.LeanCanvasGroupInteractable.Register(target, value, duration); return(target); }