void StartGambleBuff(int duration) { Dispatcher.BeginInvoke(new Action(() => { gambleDuration.BeginAnimation(Arc.EndAngleProperty, EdgeAnimations.GetArcAnimation(duration)); })); }
private void StartGambleCooldown(int cd) { Dispatcher.BeginInvoke(new Action(() => { gambleCd.BeginAnimation(Arc.EndAngleProperty, EdgeAnimations.GetArcAnimation(cd)); })); }
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)); })); }