static public int SetEndToCurrentValue(IntPtr l) { try { TweenHeight self = (TweenHeight)checkSelf(l); self.SetEndToCurrentValue(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int get_from(IntPtr l) { try { TweenHeight self = (TweenHeight)checkSelf(l); pushValue(l, true); pushValue(l, self.from); return(2); } catch (Exception e) { return(error(l, e)); } }
void OnClick() { mToggle = !mToggle; if (mToggle) { widget.cachedTransform.localPosition = Vector3.zero; NGUITools.SetActive(normalState.gameObject, false); NGUITools.SetActive(exitState.gameObject, true); //stretch.enabled = true; //stretch.style = UIStretch.Style.Both; TweenWidth tw = TweenWidth.Begin(widget, speed, Screen.width); tw.method = ease; EventDelegate.Add(tw.onFinished, OnFullScreen, true); TweenHeight th = TweenHeight.Begin(widget, speed, Screen.height); th.method = ease; if (drag != null) { NGUITools.SetActive(drag.gameObject, false); } if (resize != null) { NGUITools.SetActive(resize.gameObject, false); } } else { NGUITools.SetActive(normalState.gameObject, true); NGUITools.SetActive(exitState.gameObject, false); stretch.style = UIStretch.Style.None; stretch.enabled = false; //widget.width = defaultWidth; //widget.height = defaultHeight; TweenWidth tw = TweenWidth.Begin(widget, speed, defaultWidth); tw.method = ease; TweenHeight th = TweenHeight.Begin(widget, speed, defaultHeight); th.method = ease; if (drag != null) { NGUITools.SetActive(drag.gameObject, true); } if (resize != null) { NGUITools.SetActive(resize.gameObject, true); } } }
static public int constructor(IntPtr l) { try { TweenHeight o; o = new TweenHeight(); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
public static TweenHeight Begin(UIWidget widget, float duration, int height) { TweenHeight tweenHeight = UITweener.Begin <TweenHeight>(widget.gameObject, duration); tweenHeight.from = widget.height; tweenHeight.to = height; if (duration <= 0f) { tweenHeight.Sample(1f, true); tweenHeight.enabled = false; } return(tweenHeight); }
public override void OnInspectorGUI() { GUILayout.Space(6f); NGUIEditorTools.SetLabelWidth(120f); TweenHeight tw = target as TweenHeight; GUI.changed = false; EditorGUILayout.BeginHorizontal(); EditorGUI.BeginDisabledGroup(tw.fromTarget != null); var from = EditorGUILayout.IntField("From", tw.from); EditorGUI.EndDisabledGroup(); var fc = (UIWidget)EditorGUILayout.ObjectField(tw.fromTarget, typeof(UIWidget), true, GUILayout.Width(110f)); EditorGUILayout.EndHorizontal(); EditorGUILayout.BeginHorizontal(); EditorGUI.BeginDisabledGroup(tw.toTarget != null); var to = EditorGUILayout.IntField("To", tw.to); EditorGUI.EndDisabledGroup(); var tc = (UIWidget)EditorGUILayout.ObjectField(tw.toTarget, typeof(UIWidget), true, GUILayout.Width(110f)); EditorGUILayout.EndHorizontal(); var table = EditorGUILayout.Toggle("Update Table", tw.updateTable); if (from < 0) { from = 0; } if (to < 0) { to = 0; } if (GUI.changed) { NGUIEditorTools.RegisterUndo("Tween Change", tw); tw.from = from; tw.to = to; tw.fromTarget = fc; tw.toTarget = tc; tw.updateTable = table; NGUITools.SetDirty(tw); } DrawCommonProperties(); }
static public int set_from(IntPtr l) { try { TweenHeight self = (TweenHeight)checkSelf(l); System.Int32 v; checkType(l, 2, out v); self.from = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
/// <summary> /// Start the tweening operation. /// </summary> static public TweenHeight Begin(RectTransform tf, float duration, int height) { TweenHeight comp = UITweener.Begin <TweenHeight>(tf.gameObject, duration); comp.from = tf.sizeDelta.y; comp.to = height; if (duration <= 0f) { comp.Sample(1f, true); comp.enabled = false; } return(comp); }
static public int set_updateTable(IntPtr l) { try { TweenHeight self = (TweenHeight)checkSelf(l); System.Boolean v; checkType(l, 2, out v); self.updateTable = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static int SetEndToCurrentValue(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); TweenHeight obj = (TweenHeight)ToLua.CheckObject(L, 1, typeof(TweenHeight)); obj.SetEndToCurrentValue(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
/// <summary> /// Start the tweening operation. /// </summary> static public TweenHeight Begin(UIWidget widget, float duration, int height) { TweenHeight comp = UITweener.Begin <TweenHeight>(widget.gameObject, duration); comp.from = widget.height; comp.to = height; if (duration <= 0f) { comp.Sample(1f, true); comp.enabled = false; } return(comp); }
public void HideMovieUI() { if (m_cahcedMoveBgUpTweener == null) { m_cahcedMoveBgUpTweener = m_StoryDialogMovieUp.cachedGameObject.AddComponent <TweenHeight>(); } if (m_cahcedMoveBgDownTweener == null) { m_cahcedMoveBgDownTweener = m_StoryDialogMovieDn.cachedGameObject.AddComponent <TweenHeight>(); } OperatorHeightTweener(m_cahcedMoveBgUpTweener, false); OperatorHeightTweener(m_cahcedMoveBgDownTweener, false); //NGUITools.SetActive(m_StoryDialogMovieUp.cachedGameObject, false); //NGUITools.SetActive(m_StoryDialogMovieDn.cachedGameObject, false); }
public static TweenHeight Begin(UIWidget widget, float duration, int height) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown TweenHeight tweenHeight = UITweener.Begin <TweenHeight>(widget.get_gameObject(), duration, true); tweenHeight.from = widget.height; tweenHeight.to = height; if (duration <= 0f) { tweenHeight.Sample(1f, true); tweenHeight.set_enabled(false); } return(tweenHeight); }
public static int SetEndToCurrentValue(IntPtr l) { int result; try { TweenHeight tweenHeight = (TweenHeight)LuaObject.checkSelf(l); tweenHeight.SetEndToCurrentValue(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public void ShowMovieUI() { // m_StoryDialogBottom.SetActive(false); NGUITools.SetActive(m_StoryDialogMovieUp.cachedGameObject, true); NGUITools.SetActive(m_StoryDialogMovieDn.cachedGameObject, true); if (m_cahcedMoveBgUpTweener == null) { m_cahcedMoveBgUpTweener = m_StoryDialogMovieUp.cachedGameObject.AddComponent <TweenHeight>(); } if (m_cahcedMoveBgDownTweener == null) { m_cahcedMoveBgDownTweener = m_StoryDialogMovieDn.cachedGameObject.AddComponent <TweenHeight>(); } OperatorHeightTweener(m_cahcedMoveBgUpTweener, true); OperatorHeightTweener(m_cahcedMoveBgDownTweener, true); }
public static int constructor(IntPtr l) { int result; try { TweenHeight o = new TweenHeight(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_from(IntPtr l) { int result; try { TweenHeight tweenHeight = (TweenHeight)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, tweenHeight.from); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
static int set_from(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TweenHeight obj = (TweenHeight)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.from = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index from on a nil value")); } }
static int set_value(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TweenHeight obj = (TweenHeight)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.value = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index value on a nil value" : e.Message)); } }
static int Begin(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UIWidget arg0 = (UIWidget)ToLua.CheckUnityObject(L, 1, typeof(UIWidget)); float arg1 = (float)LuaDLL.luaL_checknumber(L, 2); int arg2 = (int)LuaDLL.luaL_checknumber(L, 3); TweenHeight o = TweenHeight.Begin(arg0, arg1, arg2); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_updateTable(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TweenHeight obj = (TweenHeight)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.updateTable = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index updateTable on a nil value" : e.Message)); } }
static int get_value(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TweenHeight obj = (TweenHeight)o; int ret = obj.value; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index value on a nil value" : e.Message)); } }
static int get_cachedWidget(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TweenHeight obj = (TweenHeight)o; UIWidget ret = obj.cachedWidget; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cachedWidget on a nil value" : e.Message)); } }
static int get_updateTable(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TweenHeight obj = (TweenHeight)o; bool ret = obj.updateTable; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index updateTable on a nil value" : e.Message)); } }
static int get_from(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); TweenHeight obj = (TweenHeight)o; int ret = obj.from; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index from on a nil value")); } }
static public int Begin_s(IntPtr l) { try { UIWidget a1; checkType(l, 1, out a1); System.Single a2; checkType(l, 2, out a2); System.Int32 a3; checkType(l, 3, out a3); var ret = TweenHeight.Begin(a1, a2, a3); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { TweenHeight __cl_gen_ret = new TweenHeight(); 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 TweenHeight constructor!")); }
public static int set_updateTable(IntPtr l) { int result; try { TweenHeight tweenHeight = (TweenHeight)LuaObject.checkSelf(l); bool updateTable; LuaObject.checkType(l, 2, out updateTable); tweenHeight.updateTable = updateTable; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_value(IntPtr l) { int result; try { TweenHeight tweenHeight = (TweenHeight)LuaObject.checkSelf(l); int value; LuaObject.checkType(l, 2, out value); tweenHeight.value = value; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
IEnumerator DragonEyeTwinke() { if (mLeftOrRigth) { TweenWidth.Begin(Dragon_EyeLeft, DragonEyeTime, Dragon_Left_Eye_Tar * 3); TweenHeight.Begin(Dragon_EyeLeft, DragonEyeTime, Dragon_Eye_Min_Height); yield return(new WaitForSeconds(DragonEyeTime)); TweenWidth.Begin(Dragon_EyeLeft, DragonEyeTime, Dragon_Left_Eye_Src); TweenHeight.Begin(Dragon_EyeLeft, DragonEyeTime, Dragon_Eye_Max_Height); yield return(new WaitForSeconds(0.5f)); for (int i = 0; i < 2; ++i) { TweenWidth.Begin(Dragon_EyeLeft, DragonEyeTwink, (int)(Dragon_Left_Eye_Src * 0.5f)); yield return(new WaitForSeconds(DragonEyeTwink)); TweenWidth.Begin(Dragon_EyeLeft, DragonEyeTwink, Dragon_Left_Eye_Src); yield return(new WaitForSeconds(DragonEyeTwink)); } } else { TweenWidth.Begin(Dragon_EyeRight, DragonEyeTime, Dragon_Left_Eye_Tar * 3); TweenHeight.Begin(Dragon_EyeRight, DragonEyeTime, Dragon_Eye_Min_Height); yield return(new WaitForSeconds(DragonEyeTime)); TweenWidth.Begin(Dragon_EyeRight, DragonEyeTime, Dragon_Left_Eye_Src); TweenHeight.Begin(Dragon_EyeRight, DragonEyeTime, Dragon_Eye_Max_Height); yield return(new WaitForSeconds(0.5f)); for (int i = 0; i < 3; ++i) { TweenWidth.Begin(Dragon_EyeRight, DragonEyeTwink, (int)(Dragon_Left_Eye_Src * 0.5f)); yield return(new WaitForSeconds(DragonEyeTwink)); TweenWidth.Begin(Dragon_EyeRight, DragonEyeTwink, Dragon_Left_Eye_Src); yield return(new WaitForSeconds(DragonEyeTwink)); } } }