public void Update() { if (ui_ != null) { ui_.Update(); } }
public override void Update() { if (modifier_ == null) { return; } state_.Text = "State: " + StateToString(modifier_.State); var clip = modifier_.CurrentClip; if (clip == null) { clip_.Text = "modifier: (nothing playing)"; } else { clip_.Text = "modifier: " + clip.displayName; } var source = modifier_.Source?.audioSource; var sclip = modifier_.Source?.playingClip; var uclip = source?.clip; if (source == null) { sourceClip_.Text = "(no source)"; seek_.Set(0, 0, 0); seek_.Enabled = false; } else if (uclip == null) { sourceClip_.Text = "source: (no clip)"; seek_.Set(0, 0, 0); seek_.Enabled = false; } else { if (sclip != null) { sourceClip_.Text = "source: " + sclip.displayName; } else { sourceClip_.Text = "source: " + uclip.name; } seek_.Set(0, uclip.length, source.time); } if (delay_ != null) { delay_.Update(); } UpdatePauseToggle(); }
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(); } }
public override void Update() { base.Update(); if (duration_ != null) { duration_.Update(); } delay_.Update(); }