public override void Reset() { gameObject = null; transition = UnityEngine.UI.Selectable.Transition.ColorTint; resetOnExit = false; }
static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); UnityEngine.UI.Selectable.Transition o = (UnityEngine.UI.Selectable.Transition)arg0; ToLua.Push(L, o); return(1); }
static ColorBox() { var ColorBox = Resources.Load <UnityEngine.GameObject>("OldScenePrefabs/NewGameMenu").transform.Find("NewGameBack/FaceView/FaceBack/FaceSettingHolder/NoseNameBack/ColorNameBack/FaceColorHolder/ColorBox"); _pointerClick = ColorBox.GetComponent <PointerClick>(); _BackgroundImage = ColorBox.GetComponent <UnityEngine.UI.Toggle>().graphic as UnityEngine.UI.Image; _image = ColorBox.GetComponent <UnityEngine.UI.Image>(); _colors = ColorBox.GetComponent <UnityEngine.UI.Toggle>().colors; _transition = ColorBox.GetComponent <UnityEngine.UI.Toggle>().transition; }
static int QPYX_set_transition_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UnityEngine.UI.Selectable QPYX_obj_YXQP = (UnityEngine.UI.Selectable)QPYX_o_YXQP; UnityEngine.UI.Selectable.Transition QPYX_arg0_YXQP = (UnityEngine.UI.Selectable.Transition)ToLua.CheckObject(L_YXQP, 2, typeof(UnityEngine.UI.Selectable.Transition)); QPYX_obj_YXQP.transition = QPYX_arg0_YXQP; return(0); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index transition on a nil value")); } }
static int QPYX_get_transition_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UnityEngine.UI.Selectable QPYX_obj_YXQP = (UnityEngine.UI.Selectable)QPYX_o_YXQP; UnityEngine.UI.Selectable.Transition QPYX_ret_YXQP = QPYX_obj_YXQP.transition; ToLua.Push(L_YXQP, QPYX_ret_YXQP); return(1); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index transition on a nil value")); } }
static int set_transition(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.UI.Selectable obj = (UnityEngine.UI.Selectable)o; UnityEngine.UI.Selectable.Transition arg0 = (UnityEngine.UI.Selectable.Transition)ToLua.CheckObject(L, 2, typeof(UnityEngine.UI.Selectable.Transition)); obj.transition = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index transition on a nil value" : e.Message)); } }
static int get_transition(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.UI.Selectable obj = (UnityEngine.UI.Selectable)o; UnityEngine.UI.Selectable.Transition ret = obj.transition; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index transition on a nil value" : e.Message)); } }
public override void OnEnter() { GameObject _go = Fsm.GetOwnerDefaultTarget(gameObject); if (_go!=null) { _selectable = _go.GetComponent<UnityEngine.UI.Selectable>(); } if (_selectable!=null && resetOnExit.Value) { _originalTransition = _selectable.transition; } DoSetValue(); Finish(); }
static int set_transition(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.UI.Selectable obj = (UnityEngine.UI.Selectable)o; UnityEngine.UI.Selectable.Transition arg0 = (UnityEngine.UI.Selectable.Transition)LuaDLL.luaL_checknumber(L, 2); obj.transition = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index transition on a nil value")); } }
static int get_transition(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.UI.Selectable obj = (UnityEngine.UI.Selectable)o; UnityEngine.UI.Selectable.Transition ret = obj.transition; LuaDLL.lua_pushinteger(L, (int)ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index transition on a nil value")); } }
public override void OnEnter() { GameObject _go = Fsm.GetOwnerDefaultTarget(gameObject); if (_go != null) { _selectable = _go.GetComponent <UnityEngine.UI.Selectable>(); } if (_selectable != null && resetOnExit.Value) { _originalTransition = _selectable.transition; } DoSetValue(); Finish(); }
static StackObject *set_transition_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, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.UI.Selectable.Transition @value = (UnityEngine.UI.Selectable.Transition) typeof(UnityEngine.UI.Selectable.Transition).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.Selectable instance_of_this_method = (UnityEngine.UI.Selectable) typeof(UnityEngine.UI.Selectable).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.transition = value; return(__ret); }
private static void SetButtonAnimStyle(GameObject go, UnityEngine.UI.Selectable.Transition animType, Image butImg) { var but = go.GetComponent <Button>(); if (but == null) { but = go.AddComponent <Button>(); } but.transition = animType; if (animType == Selectable.Transition.Animation) { but.animationTriggers.normalTrigger = "Normal"; but.animationTriggers.highlightedTrigger = "Highlighted"; but.animationTriggers.pressedTrigger = "Pressed"; but.animationTriggers.disabledTrigger = "Disabled"; var ani = go.GetComponent <Animator>(); if (ani == null) { ani = go.AddComponent <Animator>(); } if (ani.runtimeAnimatorController == null) { var runa = AssetDatabase.LoadAssetAtPath <RuntimeAnimatorController>("Assets/UI/Builds/Anim/AnimButtonScale.controller"); ani.runtimeAnimatorController = runa; } } else { but.targetGraphic = butImg; ColorBlock colorBlock = new ColorBlock(); colorBlock.normalColor = new Color32(255, 255, 255, 255); colorBlock.highlightedColor = new Color32(245, 245, 245, 255); colorBlock.pressedColor = new Color32(200, 200, 200, 255); colorBlock.disabledColor = new Color32(200, 200, 200, 128); colorBlock.colorMultiplier = 1; colorBlock.fadeDuration = 0.1f; but.colors = colorBlock; } }
static void Push(IntPtr L, UnityEngine.UI.Selectable.Transition arg) { ToLua.Push(L, arg); }