/// <summary> /// Animate the movement of a control. Does not check if animation is enabled or not /// </summary> /// <param name="control"></param> /// <param name="left"></param> /// <param name="top"></param> /// <param name="easingFunction"></param> /// <param name="time"></param> private void AnimateMotion(Control control, int left, int top, Projectplace.Gui.Tweener.ease easingFunction, int time) { TweenPairs p = new TweenPairs(); p.Add("Y", top); p.Add("X", left); Tweener t = new Tweener(control, p, easingFunction, time, 0); //t.setOnComplete(new Tweener.onCompleteFunction(completed)); Tweener.add(t); }
private void animateToHeight(int input) { // Animate changing the height TweenPairs p = new TweenPairs(); p.Add("TheFormHeight", input); Tweener t = new Tweener(this, p, Tweener.easeOutElastic, 30, 0); //animating = true; //t.setOnComplete(new Tweener.onCompleteFunction(resizeCompleted)); Tweener.add(t); }
private void moreDetailCheckBox_CheckedChanged(object sender, EventArgs e) { // Tell the player views whether or not to use more detail foreach (SortedPlayerView v in sortedPlayerViews) { if (v.Visible) { v.SetMoreDetail(moreDetailCheckBox.Checked); } } int width = moreDetailCheckBox.Checked ? 434 : 296; // Animate changing the width TweenPairs p = new TweenPairs(); p.Add("theFormWidth", width); Tweener t = new Tweener(this, p, Tweener.easeOutElastic, 30, 0); //t.setOnComplete(new Tweener.onCompleteFunction(resizeCompleted)); Tweener.add(t); }
/// <summary> /// Animate the movement of a control. Does not check if animation is enabled or not /// </summary> /// <param name="control"></param> /// <param name="left"></param> /// <param name="top"></param> /// <param name="easingFunction"></param> /// <param name="time"></param> private void AnimateMotion(Control control, int left, int top, Projectplace.Gui.Tweener.ease easingFunction, int time) { TweenPairs p = new TweenPairs(); p.Add("Y", top); p.Add("X", left); Tweener t = new Tweener(control, p, easingFunction, time, 0); //t.setOnComplete(new Tweener.onCompleteFunction(completed)); Tweener.add(t); }
private void animateToHeight(int input) { // Animate changing the height TweenPairs p = new TweenPairs(); p.Add("TheFormHeight", input); Tweener t = new Tweener(this, p, Tweener.easeOutElastic, 30, 0); //animating = true; //t.setOnComplete(new Tweener.onCompleteFunction(resizeCompleted)); Tweener.add(t); }
private void moreDetailCheckBox_CheckedChanged(object sender, EventArgs e) { // Tell the player views whether or not to use more detail foreach (SortedPlayerView v in sortedPlayerViews) { if(v.Visible) v.SetMoreDetail(moreDetailCheckBox.Checked); } int width = moreDetailCheckBox.Checked ? 434 : 296; // Animate changing the width TweenPairs p = new TweenPairs(); p.Add("theFormWidth", width); Tweener t = new Tweener(this, p, Tweener.easeOutElastic, 30, 0); //t.setOnComplete(new Tweener.onCompleteFunction(resizeCompleted)); Tweener.add(t); }