private void OnFocusXStarted(long duration) { Dispatcher?.Invoke(() => { _an.Duration = TimeSpan.FromMilliseconds(duration); MainReArc.BeginAnimation(Arc.EndAngleProperty, _an); }); }
private void ST_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { if (e.PropertyName == nameof(_dc.ST.Factor)) { _an.To = _dc.ST.Factor * 359.99; MainReArc.BeginAnimation(Arc.EndAngleProperty, _an); } }
private void OnLineHeldRefreshed(long duration) { Dispatcher?.Invoke(() => { _lineHeldDurationAn.Duration = TimeSpan.FromMilliseconds(duration); MainReArc.BeginAnimation(Arc.EndAngleProperty, _lineHeldDurationAn); }); }
private void ST_PropertyChanged(object sender, PropertyChangedEventArgs e) { if (e.PropertyName != nameof(_dc.StaminaTracker.Factor)) { return; } _an.To = _dc.StaminaTracker.Factor * (359.99 - 2 * MainReArc.StartAngle) + MainReArc.StartAngle; MainReArc.BeginAnimation(Arc.EndAngleProperty, _an); }
private void ST_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { if (e.PropertyName != nameof(_dc.StaminaTracker.Factor)) { return; } _an.To = _dc.StaminaTracker.Factor * (359.99 - 80) + 40; MainReArc.BeginAnimation(Arc.EndAngleProperty, _an); }
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 ST_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { if (e.PropertyName != nameof(_dc.StaminaTracker.Factor)) { return; } if (!_dc.Ragnarok.Buff.IsAvailable) { return; } _an.To = _dc.StaminaTracker.Factor * (359.99 - MainReArc.StartAngle * 2) + MainReArc.StartAngle; MainReArc.BeginAnimation(Arc.EndAngleProperty, _an); }
private void ST_PropertyChanged(object?sender, System.ComponentModel.PropertyChangedEventArgs e) { if (_dc == null) { return; } if (e.PropertyName != nameof(_dc.StaminaTracker.Factor)) { return; } if (!_dc.Ragnarok.Effect.IsAvailable) { return; } var to = _dc.StaminaTracker.Factor * (359.99 - MainReArc.StartAngle * 2) + MainReArc.StartAngle; _an.To = double.IsNaN(to) ? 0 : to; MainReArc.BeginAnimation(Arc.EndAngleProperty, _an); }
private void OnRagnarokStarted(Data.CooldownMode obj) { _rag.Duration = TimeSpan.FromMilliseconds(_dc.Ragnarok.Buff.OriginalCooldown); MainReArc.BeginAnimation(Arc.EndAngleProperty, _rag); }