Example #1
0
 private void OnStacksChanged(int stacks)
 {
     Dispatcher?.Invoke(() =>
     {
         _lineHeldStacksAn.To = stacks / 5D * 280 + 42;
         SecReArc.BeginAnimation(Arc.EndAngleProperty, _lineHeldStacksAn);
     });
 }
 //private void OnLineHeldPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
 //{
 //    if (e.PropertyName != nameof(_dc.LH.Val)) return;
 //    Dispatcher.Invoke(() =>
 //    {
 //        for (var i = 0; i < _dc.LH.Max; i++)
 //        {
 //            LineHeldContainer.Children[i].Opacity = i <= _dc.LH.Val - 1 ? 1 : 0;
 //        }
 //    });
 //}
 private void OnStacksChanged(int stacks)
 {
     Dispatcher.Invoke(() =>
     {
         _lineHeldStacksAn.To       = stacks / 10D * 280 + 42;
         _lineHeldStacksAn.Duration = TimeSpan.FromMilliseconds(150);
         SecReArc.BeginAnimation(Arc.EndAngleProperty, _lineHeldStacksAn);
     });
 }
 private void OnStacksChanged(int stacks)
 {
     Dispatcher?.InvokeAsync(() =>
     {
         _an2.To       = stacks / 10D * 280 + 42;
         _an2.Duration = TimeSpan.FromMilliseconds(150);
         SecReArc.BeginAnimation(Arc.EndAngleProperty, _an2);
     });
 }
Example #4
0
 private void OnLineHeldEnded()
 {
     Dispatcher?.Invoke(() =>
     {
         _lineHeldStacksAn.To = 42;
         SecReArc.BeginAnimation(Arc.EndAngleProperty, _lineHeldStacksAn);
         MainReArc.BeginAnimation(Arc.EndAngleProperty, _lineHeldStacksAn);
     });
 }
 private void OnLineHeldEnded()
 {
     Dispatcher.Invoke(() =>
     {
         _lineHeldStacksAn.To       = 42;
         _lineHeldStacksAn.Duration = TimeSpan.FromMilliseconds(150);
         SecReArc.BeginAnimation(Arc.EndAngleProperty, _lineHeldStacksAn);
         MainReArc.BeginAnimation(Arc.EndAngleProperty, _lineHeldStacksAn);
     });
 }
        private void OnStacksChanged(int stacks)
        {
            Dispatcher.Invoke(() => _an2.To       = ((stacks / 10D) * 280) + 42);
            Dispatcher.Invoke(() => _an2.Duration = TimeSpan.FromMilliseconds(150));

            Dispatcher.Invoke(() => SecReArc.BeginAnimation(Arc.EndAngleProperty, _an2));
            if (ArcherFocusTracker.IsFocusXRunning)
            {
            }
            else
            {
                //Dispatcher.Invoke(() => MainReArc.BeginAnimation(Arc.EndAngleProperty, _an2));
            }
        }