Ejemplo n.º 1
0
        public AnimatedFloat(AnimateOperation o)
        {
            operation  = o;
            step_timer = new StepStopwatch(Duration.Seconds(0.050f)).Chain(z => z.Start());

            is_animating = true;
            sleep_timer  = new Timer(Duration.Seconds(0.5f));
        }
Ejemplo n.º 2
0
        public AffectedValue(VALUE_TYPE r)
        {
            rest_value = r;

            is_active   = true;
            step_timer  = new StepStopwatch(Duration.Seconds(0.050f)).StartAndGet();
            sleep_timer = new Timer(Duration.Seconds(0.5f));

            affectors = new List <AffectedValueAffector <VALUE_TYPE> >();
        }
Ejemplo n.º 3
0
 static public float StepSeconds(this StepStopwatch item)
 {
     return(item.StepTime().GetSeconds());
 }
Ejemplo n.º 4
0
 static public Duration StepTime(this StepStopwatch item)
 {
     return(Duration.Milliseconds(item.Step()));
 }