Exemple #1
0
 void StartGambleBuff(int duration)
 {
     Dispatcher.BeginInvoke(new Action(() =>
     {
         gambleDuration.BeginAnimation(Arc.EndAngleProperty, EdgeAnimations.GetArcAnimation(duration));
     }));
 }
Exemple #2
0
 private void StartGambleCooldown(int cd)
 {
     Dispatcher.BeginInvoke(new Action(() =>
     {
         gambleCd.BeginAnimation(Arc.EndAngleProperty, EdgeAnimations.GetArcAnimation(cd));
     }));
 }
Exemple #3
0
 void StartScytheCooldown(int cd)
 {
     Dispatcher.BeginInvoke(new Action(() =>
     {
         scytheCd.Stroke.BeginAnimation(SolidColorBrush.ColorProperty, EdgeAnimations.GetColorAnimation(Colors.Red, Colors.White, Convert.ToInt32(cd * .1)));
         scytheCd.BeginAnimation(Arc.EndAngleProperty, EdgeAnimations.GetArcAnimation(cd));
     }));
 }