Exemplo 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));
        }
Exemplo 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> >();
        }
Exemplo n.º 3
0
 static public float StepSeconds(this StepStopwatch item)
 {
     return(item.StepTime().GetSeconds());
 }
Exemplo n.º 4
0
 static public Duration StepTime(this StepStopwatch item)
 {
     return(Duration.Milliseconds(item.Step()));
 }