示例#1
0
        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();
        }
示例#2
0
        public void StopAllAnim()
        {
            progressAnim.Stop();
            haloAnim.Stop();

            for (int i = 0; i < TxtRowCount; i++)
            {
                rowTextInfoList[i].StopScaleAnim();
            }
        }
示例#3
0
        private void ScAnim_AnimationEvent1(ScAnimation scAnimation)
        {
            growHeight = mouseEnterLinear1.GetCurtValue();

            if (mouseEnterLinear1.IsStop)
            {
                mouseEnterAnim1.Stop();

                StartProgressAnim(startColor, endColor);
            }

            Refresh();
        }
示例#4
0
 public void StartRowLayerAnim()
 {
     val = Location.X;
     rowLayerAnim.Stop();
     rowLayerAnimLinear = new ScLinearAnimation(0, val, rowLayerAnim);
     rowLayerAnim.Start();
 }
示例#5
0
文件: ScTxtInfo.cs 项目: zanderzhg/Sc
        public void StartScaleAnim()
        {
            if (scaleAnim == null)
            {
                return;
            }

            scaleAnim.Stop();

            step = (int)(maxVarValue - animValue) / 10;
            if (step == 0)
            {
                step = 1;
            }

            scaleAnim.Start();
        }
示例#6
0
        public void StartRowLayerBackAnim()
        {
            float v = val;

            rowLayerBackAnim.Stop();
            rowLayerBackAnimLinear = new ScLinearAnimation(v, 0, rowLayerBackAnim);
            rowLayerBackAnim.Start();
        }
示例#7
0
        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();
        }
示例#8
0
文件: ScButton.cs 项目: lypvc/Sc
        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();
        }
示例#9
0
        private void ScAnim_AnimationEvent(ScAnimation scAnimation)
        {
            alpha = (int)linear.GetCurtValue();

            if (linear.IsStop)
            {
                scAnimation.Stop();
            }

            Refresh();
        }
示例#10
0
        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();
                }
            }
        }
示例#11
0
        void StartZoomAnim()
        {
            if (animZoom == zoom)
            {
                return;
            }

            zoomAnim.Stop();
            zoomLinear = new ScLinearAnimation(animZoom, zoom, zoomAnim);
            zoomAnim.Start();
        }
示例#12
0
        private void ZoomAnim_AnimationEvent(ScAnimation scAnimation)
        {
            animZoom = zoomLinear.GetCurtValue();

            ScaleX = animZoom;
            ScaleY = animZoom;

            if (zoomLinear.IsStop)
            {
                scAnimation.Stop();
            }

            Refresh();
        }
示例#13
0
文件: ScLayer.cs 项目: zanderzhg/Sc
        private void VisibleAnim_AnimationEvent(ScAnimation scAnimation)
        {
            Opacity = opacityLinear.GetCurtValue();

            if (opacityLinear.IsStop)
            {
                scAnimation.Stop();
                if (Opacity == 0)
                {
                    visible = false;
                }
            }

            Refresh();
        }
示例#14
0
文件: ScLayer.cs 项目: zanderzhg/Sc
        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();
        }
示例#15
0
        private void ScAnim_AnimationEvent(ScAnimation scAnimation)
        {
            if (progressLinear == null)
            {
                return;
            }

            animProgress = progressLinear.GetCurtValue();

            if (progressLinear.IsStop)
            {
                scAnimation.Stop();
                progressLinear = null;
                StartProgressAnim();
            }

            Refresh();
        }
示例#16
0
        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();
        }
示例#17
0
        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();
        }
示例#18
0
        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();
        }
示例#19
0
        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);
                }
            }
        }
示例#20
0
        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();
        }
示例#21
0
 public void PreOrNextBtnUp()
 {
     scAnim.Stop();
 }
示例#22
0
 public void StopAllAnim()
 {
     progressAnim.Stop();
 }
示例#23
0
 public void StartScaleAnim()
 {
     scaleAnim.Stop();
     linear = new ScLinearAnimation(0, 1.0f, scaleAnim);
     scaleAnim.Start();
 }
示例#24
0
 private void ScScrollBarSlider_MouseDown(object sender, ScMouseEventArgs e)
 {
     scAnim.Stop();
     alpha = downAlpha;
     Refresh();
 }
示例#25
0
 public void StopAnim()
 {
     cursorState = 0;
     scAnim.Stop();
 }
示例#26
0
 public void StopAnim()
 {
     scAnim.Stop();
 }
示例#27
0
 public void StartProgressAnim()
 {
     progressAnim.Stop();
     progressStep = new ScStepAnimation(animProgress, animStep, progressAnim);
     progressAnim.Start();
 }