Пример #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
        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
        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
        private void VisibleAnim_AnimationEvent(ScAnimation scAnimation)
        {
            Opacity = opacityLinear.GetCurtValue();

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

            Refresh();
        }
Пример #14
0
        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();
 }