public RandomizableFloatMonitorWidgets(string name, int flags = 0) : base(name, flags) { current_ = new FloatSlider( name, 0f, new FloatRange(0f, 5f), null, flags_ | FloatSlider.Disabled | FloatSlider.Constrained); }
public RampDurationUI(string name, int flags = 0) : base(name) { timeUp_ = new FloatSlider( MakeText("Ramp time up"), TimeUpChanged, flags); timeDown_ = new FloatSlider( MakeText("Ramp time down"), TimeDownChanged, flags); min_ = new FloatSlider( MakeText("Minimum duration"), MinimumChanged, flags); max_ = new FloatSlider( MakeText("Maximum duration"), MaximumChanged, flags); hold_ = new FloatSlider( MakeText("Hold maximum"), HoldChanged, flags); rampUp_ = new Checkbox( MakeText("Ramp up"), RampUpChanged, flags); rampDown_ = new Checkbox( MakeText("Ramp down"), RampDownChanged, flags); easing_ = new FactoryStringList <EasingFactory, IEasing>( MakeText("Easing"), EasingChanged, flags); }
public ActionStorableParameterMonitorUI() { triggerMag_ = new FloatSlider( "Trigger at", null, Widget.Right | Widget.Disabled); triggerType_ = new Label("", Widget.Right); actionCurrentState_ = new Label("", Widget.Right); actionLastState_ = new Label("", Widget.Right); }
public OverlapMonitorUI(int flags = 0) { osActive_ = new Label("", flags); osOverlap_ = new Label("", flags); timeRemaining_ = new FloatSlider( "Time remaining (overlapper)", null, flags | Widget.Disabled); overlapTime_ = new FloatSlider( "Overlap time", null, flags | Widget.Disabled); }
protected RandomizableValueMonitorWidgets(string name, int flags) : base(flags) { name_ = name; next_ = new FloatSlider( MakeNextLabel(-1), 0f, new FloatRange(0f, 5f), null, flags_ | FloatSlider.Disabled | FloatSlider.Constrained); }
public EyesModifierUI(MainUI ui) : base(ui, Utilities.AtomHasEyes) { saccade_ = new Collapsible("Saccade", null, Widget.Right); saccadeTime_ = new RandomizableTimeWidgets( "Saccade interval", Widget.Right); saccadeMin_ = new FloatSlider( "Saccade minimum (x10)", 0, new FloatRange(0, 1), SaccadeMinChanged, Widget.Right); saccadeMax_ = new FloatSlider( "Saccade maximum (x10)", 0, new FloatRange(0, 1), SaccadeMaxChanged, Widget.Right); minDistance_ = new FloatSlider( "Minimum distance (avoids cross-eyed)", 0, new FloatRange(0, 1), MinDistanceChanged, Widget.Right); focusDurationCollapsible_ = new Collapsible( "Focus time", null, Widget.Right); focusDuration_ = new RandomizableTimeWidgets( "Focus time", Widget.Right); gaze_ = new StringList( "MacGruber's Gaze", GazeChanged, Widget.Right); blink_ = new StringList("Blink", BlinkChanged, Widget.Right); addTarget_ = new Button("Add target", AddTarget, Widget.Right); previewsEnabled_ = new Checkbox( "Show previews", PreviewsChanged, Widget.Right); previewsAlpha_ = new FloatSlider( "Previews alpha", 0.3f, new FloatRange(0, 1), PreviewsAlphaChanged, Widget.Right); foreach (var w in saccadeTime_.GetWidgets()) { saccade_.Add(w); } saccade_.Add(saccadeMin_); saccade_.Add(saccadeMax_); saccade_.Add(new SmallSpacer(Widget.Right)); foreach (var w in focusDuration_.GetWidgets()) { focusDurationCollapsible_.Add(w); } focusDurationCollapsible_.Add(new SmallSpacer(Widget.Right)); }
public AudioModifierMonitor() { state_ = new Label("", Widget.Right); clip_ = new Label("", Widget.Right); sourceClip_ = new Label("", Widget.Right); seek_ = new FloatSlider( "Seek", 0, new FloatRange(0, 0), Seek, Widget.Right); pauseToggle_ = new Button("", PauseToggle, Widget.Right); UpdatePauseToggle(); }
public MovementMonitorWidgets(int flags) { magnitude_ = new FloatSlider( "Magnitude", 0f, new FloatRange(-500f, 500f), null, Widget.Disabled | flags); target_ = new FloatSlider( "Target", 0f, new FloatRange(-500f, 500f), null, Widget.Disabled | flags); min_ = new RandomizableFloatMonitorWidgets("Minimum", flags); max_ = new RandomizableFloatMonitorWidgets("Maximum", flags); }
public OrderedMorphProgressionUI(int flags) : base(flags) { holdHalfway_ = new Checkbox( "Hold halfway", HoldHalfwayChanged, flags); overrideOverlapTime_ = new Checkbox( "Override global overlap time", OverrideOverlapTimeChanged, flags); overlapTime_ = new FloatSlider( "Overlap time", OverlapTimeChanged, flags); }
public Vector3UI(string name, int flags, FloatRange range, Callback changed) { Changed = changed; x_ = new FloatSlider( MakeCaption(name, "X"), 0, new FloatRange(range), OnChanged, flags); y_ = new FloatSlider( MakeCaption(name, "Y"), 0, new FloatRange(range), OnChanged, flags); z_ = new FloatSlider( MakeCaption(name, "Z"), 0, new FloatRange(range), OnChanged, flags); }
public RandomizableIntWidgets(string name, int flags = 0) : base(flags) { interval_ = new FloatSlider( name + " change interval", 0, new FloatRange(0, 10), IntervalChanged, flags); randomHalf_ = new Button("Randomize half", RandomizeHalf, flags); initial_ = new IntSlider( name, 0, new IntRange(0, 0), InitialChanged, flags); range_ = new IntSlider( name + " range", 0, new IntRange(0, 0), RangeChanged, flags); }
public EyesModifierMonitor() { current_ = new Label("", Widget.Right); currentPos_ = new Label("", Widget.Right); head_ = new Label("", Widget.Right); eyes_ = new Label("", Widget.Right); saccade_ = new Label("", Widget.Right); saccadeTime_ = new RandomizableTimeMonitorWidgets( "Saccade", Widget.Right); saccadeMin_ = new FloatSlider("Saccade minimum", null, Widget.Right); saccadeMax_ = new FloatSlider("Saccade maximum", null, Widget.Right); focusDuration_ = new RandomizableTimeMonitorWidgets( "Focus duration", Widget.Right); currentfocusDuration_ = new FloatSlider( "Current focus duration", null, Widget.Right); focusDurationProgress_ = new FloatSlider( "Focus progress", null, Widget.Right); minDistance_ = new FloatSlider("Minimum distance", null, Widget.Right); }
public RandomEyesTargetUI( EyesModifierTargetUIContainer parent, EyesTargetContainer tc) : base(parent, tc) { target_ = tc.Target as RandomEyesTarget; var r = new FloatRange(0, 10); atom_ = new AtomList( "Relative atom", target_?.Atom?.uid, AtomChanged, null, Widget.Right); rel_ = new ForceReceiverList( "Relative receiver", target_?.RelativeTo?.name, ReceiverChanged, Widget.Right); distance_ = new FloatSlider( "Distance", target_.Distance, r, DistanceChanged, Widget.Right); centerX_ = new FloatSlider( "Offset X", target_.CenterX, r, CenterXChanged, Widget.Right); centerY_ = new FloatSlider( "Offset Y", target_.CenterY, r, CenterYChanged, Widget.Right); xRange_ = new FloatSlider( "Range X", target_.RangeX, r, RangeXChanged, Widget.Right); yRange_ = new FloatSlider( "Range Y", target_.RangeY, r, RangeYChanged, Widget.Right); avoidXRange_ = new FloatSlider( "Avoid range X", target_.AvoidRangeX, r, AvoidRangeXChanged, Widget.Right); avoidYRange_ = new FloatSlider( "Avoid range Y", target_.AvoidRangeY, r, AvoidRangeYChanged, Widget.Right); rel_.Atom = target_.Atom; }
public RandomizableTimeWidgets(string name, int flags = 0) : base(flags) { interval_ = new FloatSlider( name + " change interval", 0, new FloatRange(0, 10), IntervalChanged, flags); randomHalf_ = new Button("Randomize half", RandomizeHalf, flags); initial_ = new FloatSlider( name, 0, new FloatRange(0, 0), InitialChanged, flags); range_ = new FloatSlider( name + " random range", 0, new FloatRange(0, 0), RangeChanged, flags); cutoff_ = new StringList( name + " cut-off", "", RandomizableTime.GetCutoffNames(), CutoffChanged, flags); }
public ActionStorableParameterUI() { triggerMag_ = new FloatSlider( "Trigger at", TriggerMagChanged, Widget.Right); triggerType_ = new StringList( "Trigger type", TriggerTypeChanged, Widget.Right); triggerType_.DisplayChoices = ActionStorableParameter.TriggerTypeNames(); var list = new List <string>(); foreach (var i in ActionStorableParameter.TriggerTypes()) { list.Add(i.ToString()); } triggerType_.Choices = list; }
public OptionsUI(int flags = 0) { collapsible_ = new Collapsible("Options and presets", null, flags); resetValuesOnFreeze_ = new Checkbox( "Reset positions on freeze", options_.ResetValuesOnFreeze, ResetValuesOnFreezeChanged, flags); resetCountersOnThaw_ = new Checkbox( "Reset counters on thaw", options_.ResetCountersOnThaw, ResetCountersOnThaw, flags); pickAnimatable_ = new Checkbox( "Pick animatable", PickAnimatableChanged, flags); manageAnimatable_ = new Button( "Manage animatables", ManageAnimatables, flags); overlapTime_ = new FloatSlider( "Global overlap time", options_.OverlapTime, new FloatRange(0, 1), OverlapTimeChanged, flags); logLevel_ = new StringList( "Log level", Options.LogLevelToString(options_.LogLevel), Options.GetLogLevelNames(), LogLevelChanged, flags); logOverlap_ = new Checkbox( "Log overlap", LogOverlapChanged, flags); usePlaceholder_ = new Checkbox( "Save: use placeholder for atoms", null, flags); collapsible_.Add(resetValuesOnFreeze_); collapsible_.Add(resetCountersOnThaw_); collapsible_.Add(pickAnimatable_); collapsible_.Add(manageAnimatable_); collapsible_.Add(overlapTime_); collapsible_.Add(logLevel_); collapsible_.Add(logOverlap_); collapsible_.Add(new SmallSpacer(flags)); collapsible_.Add(usePlaceholder_); collapsible_.Add(new Button( "Full: save", SaveFull, flags)); collapsible_.Add(new Button( "Full: load, replace everything", () => { LoadFull(Utilities.PresetReplace); }, flags)); collapsible_.Add(new Button( "Full: load, append steps", () => { LoadFull(Utilities.PresetAppend); }, flags)); collapsible_.Add(new SmallSpacer(flags)); collapsible_.Add(new Button( "Step: save current", SaveStep, flags)); collapsible_.Add(new Button( "Step: load, replace current", () => { LoadStep(Utilities.PresetReplace); }, flags)); collapsible_.Add(new Button( "Step: load, add modifiers to current step", () => { LoadStep(Utilities.PresetMerge); }, flags)); collapsible_.Add(new Button( "Step: load, append as new step", () => { LoadStep(Utilities.PresetAppend); }, flags)); collapsible_.Add(new SmallSpacer(flags)); collapsible_.Add(new Button( "Modifier: save current", SaveModifier, flags)); collapsible_.Add(new Button( "Modifier: load, replace current", () => { LoadModifier(Utilities.PresetReplace); }, flags)); collapsible_.Add(new Button( "Modifier: load, append to current step", () => { LoadModifier(Utilities.PresetAppend); }, flags)); collapsible_.Add(new SmallSpacer(flags)); }
public RampDurationMonitor(string name, int flags) : base(flags) { start_ = new FloatSlider( name + " start", 0, new FloatRange(0, 0), null, flags_ | FloatSlider.Disabled); end_ = new FloatSlider( name + " end", 0, new FloatRange(0, 0), null, flags_ | FloatSlider.Disabled); timeUp_ = new FloatSlider( name + " time up", 0, new FloatRange(0, 0), null, flags_ | FloatSlider.Disabled); timeDown_ = new FloatSlider( name + " time down", 0, new FloatRange(0, 0), null, flags_ | FloatSlider.Disabled); hold_ = new FloatSlider( name + " hold maximum", 0, new FloatRange(0, 0), null, flags_ | FloatSlider.Disabled); firstHalfProgress_ = new FloatSlider( name + " first half progress", 0, new FloatRange(0, 0), null, flags_ | FloatSlider.Disabled); secondHalfProgress_ = new FloatSlider( name + " second half progress", 0, new FloatRange(0, 0), null, flags_ | FloatSlider.Disabled); inFirstHalf_ = new Checkbox( name + " in first half", null, flags_ | Widget.Disabled); totalProgress_ = new FloatSlider( name + " total progress", 0, new FloatRange(0, 0), null, flags_ | FloatSlider.Disabled); inFirstHalfTotal_ = new Checkbox( name + " in first half total", null, flags_ | Widget.Disabled); firstHalfFinished_ = new Checkbox( name + " first half finished", null, flags_ | Widget.Disabled); finished_ = new Checkbox( name + " finished", null, flags_ | Widget.Disabled); timeRemaining_ = new FloatSlider( name + " time remaining", 0, new FloatRange(0, 0), null, flags_ | FloatSlider.Disabled); timeRemainingInHalf_ = new FloatSlider( name + " time remaining in half", 0, new FloatRange(0, 0), null, flags_ | FloatSlider.Disabled); current_ = new FloatSlider( name + " current", 0, new FloatRange(0, 0), null, flags_ | FloatSlider.Disabled); elapsed_ = new FloatSlider( name + " elapsed", 0, new FloatRange(0, 0), null, flags_ | FloatSlider.Disabled); totalElapsed_ = new FloatSlider( name + " total elapsed", 0, new FloatRange(0, 0), null, flags_ | FloatSlider.Disabled); progress_ = new FloatSlider( name + " progress", 0, new FloatRange(0, 0), null, flags_ | FloatSlider.Disabled); holdingProgress_ = new FloatSlider( name + " hold progress", 0, new FloatRange(0, 0), null, flags_ | FloatSlider.Disabled); holdingElapsed_ = new FloatSlider( name + " holding elapsed", 0, new FloatRange(0, 0), null, flags_ | FloatSlider.Disabled); }
public FloatStorableParameterMonitorUI() { paramValue_ = new FloatSlider( "Parameter value", null, Widget.Right | Widget.Disabled); }