public override void Update() { base.Update(); if (modifier_ == null) { return; } // todo var natpro = modifier_.Progression as NaturalMorphProgression; if (natpro != null) { natProStop_.Value = natpro.Stopping; } overlap_.Update( (modifier_.Progression as OrderedMorphProgression) ?.Overlapper); int morphIndex = 0; foreach (var mm in morphs_) { if (mm.sm.Enabled) { mm.Update(modifier_, morphIndex); ++morphIndex; } } }
public void Update() { var runningStep = Synergy.Instance.Manager.CurrentStep; if (runningStep == null) { runningStep_.Text = "(Step running: none)"; } else { runningStep_.Text = "(Step running: " + runningStep.Name + ", " + runningStep.EnabledModifiers.Count.ToString() + "/" + runningStep.Modifiers.Count.ToString() + " m" + (runningStep.MustStopEventually ? "" : ", infinite") + ")"; } if (currentStep_ == null) { active_.Value = false; enabled_.Value = false; paused_.Value = false; } else { active_.Value = Synergy.Instance.Manager.IsStepActive(currentStep_); enabled_.Value = currentStep_.Enabled; paused_.Value = currentStep_.Paused; } if (currentStep_ == null) { repeat_.SetValue(null); } else { repeat_.SetValue(currentStep_.Repeat); } if (duration_ != null) { duration_.Update(); } delay_.Update(); overlap_.Update( (Synergy.Instance.Manager.StepProgression as OrderedStepProgression) ?.Overlapper); if (modifierMonitor_ != null) { modifierMonitor_.Update(); } }