private void ScAnim_AnimationEvent(ScAnimation scAnimation) { if (mouseEnterLinear == null) { return; } float value = mouseEnterLinear.GetCurtValue(); enterHaloAlpha = (int)value; if (mouseEnterLinear.IsStop) { mouseEnterAnim.Stop(); mouseEnterLinear = null; if (value == endColor) { StartProgressAnim(endColor, startColor); } else { StartProgressAnim(startColor, endColor); } } Refresh(); }
public void StopAllAnim() { progressAnim.Stop(); haloAnim.Stop(); for (int i = 0; i < TxtRowCount; i++) { rowTextInfoList[i].StopScaleAnim(); } }
private void ScAnim_AnimationEvent1(ScAnimation scAnimation) { growHeight = mouseEnterLinear1.GetCurtValue(); if (mouseEnterLinear1.IsStop) { mouseEnterAnim1.Stop(); StartProgressAnim(startColor, endColor); } Refresh(); }
public void StartRowLayerAnim() { val = Location.X; rowLayerAnim.Stop(); rowLayerAnimLinear = new ScLinearAnimation(0, val, rowLayerAnim); rowLayerAnim.Start(); }
public void StartScaleAnim() { if (scaleAnim == null) { return; } scaleAnim.Stop(); step = (int)(maxVarValue - animValue) / 10; if (step == 0) { step = 1; } scaleAnim.Start(); }
public void StartRowLayerBackAnim() { float v = val; rowLayerBackAnim.Stop(); rowLayerBackAnimLinear = new ScLinearAnimation(v, 0, rowLayerBackAnim); rowLayerBackAnim.Start(); }
public void StartAnim(Color stopColor) { scAnim.Stop(); linearR = new ScLinearAnimation(color.R, stopColor.R, scAnim); linearG = new ScLinearAnimation(color.G, stopColor.G, scAnim); linearB = new ScLinearAnimation(color.B, stopColor.B, scAnim); scAnim.Start(); }
public void StartFontColorAnim(Color stopFontColor) { scFontColorAnim.Stop(); linearFontR = new ScLinearAnimation(fontColor.R, stopFontColor.R, scFontColorAnim); linearFontG = new ScLinearAnimation(fontColor.G, stopFontColor.G, scFontColorAnim); linearFontB = new ScLinearAnimation(fontColor.B, stopFontColor.B, scFontColorAnim); scFontColorAnim.Start(); }
private void ScAnim_AnimationEvent(ScAnimation scAnimation) { alpha = (int)linear.GetCurtValue(); if (linear.IsStop) { scAnimation.Stop(); } Refresh(); }
public void StopAllTimer() { slideScreenAnim.Stop(); foreach (ScLayer sclayer in leftScreen.controls) { foreach (ScVxButton item in sclayer.controls) { item.StopAllAnim(); } } foreach (ScLayer sclayer in rightScreen.controls) { foreach (ScVxButton item in sclayer.controls) { item.StopAllAnim(); } } }
void StartZoomAnim() { if (animZoom == zoom) { return; } zoomAnim.Stop(); zoomLinear = new ScLinearAnimation(animZoom, zoom, zoomAnim); zoomAnim.Start(); }
private void ZoomAnim_AnimationEvent(ScAnimation scAnimation) { animZoom = zoomLinear.GetCurtValue(); ScaleX = animZoom; ScaleY = animZoom; if (zoomLinear.IsStop) { scAnimation.Stop(); } Refresh(); }
private void VisibleAnim_AnimationEvent(ScAnimation scAnimation) { Opacity = opacityLinear.GetCurtValue(); if (opacityLinear.IsStop) { scAnimation.Stop(); if (Opacity == 0) { visible = false; } } Refresh(); }
public void StartVisibleAnim(bool isVisible) { visableAnim.Stop(); float stopOpacity = 0; if (isVisible == true) { visible = true; stopOpacity = 1.0f; } opacityLinear = new ScLinearAnimation(Opacity, stopOpacity, visableAnim); visableAnim.Start(); }
private void ScAnim_AnimationEvent(ScAnimation scAnimation) { if (progressLinear == null) { return; } animProgress = progressLinear.GetCurtValue(); if (progressLinear.IsStop) { scAnimation.Stop(); progressLinear = null; StartProgressAnim(); } Refresh(); }
private void RowLayerAnim_AnimationEvent(ScAnimation scAnimation) { float v = 0; float len = rowLayerAnimLinear.GetCurtValue(); if (rowLayerAnimLinear.IsStop) { scAnimation.Stop(); } for (int i = 0; i < controls.Count; i++) { ScLayer rowlayer = controls[i]; v = len * i * animBaseSpaceScale + animPos; rowlayer.Location = new PointF(v, rowlayer.Location.Y); } Refresh(); }
private void SlideScreenAnim_AnimationEvent(ScAnimation scAnimation) { float pos = slideAnimLinear.GetCurtValue(); if (slideAnimLinear.IsStop) { scAnimation.Stop(); if (slideDirection == -1) { rightScreen.StartRowLayerBackAnim(); } else { leftScreen.StartRowLayerBackAnim(); } } SetSlidePos(pos); Refresh(); }
private void HaloAnim_AnimationEvent(ScAnimation scAnimation) { animHaloAlphaScale = haloLinear.GetCurtValue(); if (haloLinear.IsStop) { scAnimation.Stop(); if (endHaloAlphaScale == 1.0f) { endHaloAlphaScale = 0.3f; } else { endHaloAlphaScale = 1.0f; } StartHaloAnim(); } Refresh(); }
private void ScAnim_AnimationEvent(ScAnimation scAnimation) { int r, g, b; r = (int)linearR.GetCurtValue(); g = (int)linearG.GetCurtValue(); b = (int)linearB.GetCurtValue(); color = Color.FromArgb(r, g, b); Refresh(); Update(); if (linearR.IsStop && linearG.IsStop && linearB.IsStop) { scAnimation.Stop(); if (AnimalStopEvent != null) { AnimalStopEvent(this); } } }
private void ScVxDate_SizeChanged(object sender, SizeF oldSize) { RectangleF rect = new RectangleF(0, 0, Width, Height); mainTable = new Table(rect, 1, 3); TableLine tableLine = new TableLine(LineDir.VERTICAL); tableLine.lineComputeMode = LineComputeMode.PERCENTAGE; tableLine.computeParam = 0.4f; mainTable.SetLineArea(0, tableLine); tableLine.computeParam = 0.25f; mainTable.SetLineArea(1, tableLine); tableLine.computeParam = 0.35f; mainTable.SetLineArea(2, tableLine); mainTable.ComputeLinesArea(LineDir.VERTICAL); dateAnim.Stop(); dateAnim.Start(); }
public void PreOrNextBtnUp() { scAnim.Stop(); }
public void StopAllAnim() { progressAnim.Stop(); }
public void StartScaleAnim() { scaleAnim.Stop(); linear = new ScLinearAnimation(0, 1.0f, scaleAnim); scaleAnim.Start(); }
private void ScScrollBarSlider_MouseDown(object sender, ScMouseEventArgs e) { scAnim.Stop(); alpha = downAlpha; Refresh(); }
public void StopAnim() { cursorState = 0; scAnim.Stop(); }
public void StopAnim() { scAnim.Stop(); }
public void StartProgressAnim() { progressAnim.Stop(); progressStep = new ScStepAnimation(animProgress, animStep, progressAnim); progressAnim.Start(); }