public EyesModifierTargetUIContainer(EyesModifier m, EyesTargetContainer t) { modifier_ = m; container_ = t; delete_ = new ConfirmableButton( "Delete target", DeleteTarget, Widget.Right); types_ = new FactoryStringList <EyesTargetFactory, IEyesTarget>( "Type", TypeChanged, Widget.Right); enabled_ = new Checkbox( "Enabled", t.Enabled, EnabledChanged, Widget.Right); collapsible_ = new Collapsible( container_.Name, null, Widget.Right); UpdateWidgets(); }
public SelectedMorphWidget( MorphModifierUI ui, SelectedMorph sm, int flags = 0) { ui_ = ui; sm_ = sm; collapsible_ = new Collapsible(sm_.DisplayName, null, flags); enabled_ = new Checkbox("Enabled", EnabledChanged, flags); remove_ = new ConfirmableButton("Remove", Remove, flags); movementUI_ = new MovementUI(flags); enabled_.Parameter = sm_.EnabledParameter; movementUI_.SetValue(sm_.Movement, sm_.PreferredRange); collapsible_.Add(enabled_); collapsible_.Add(remove_); foreach (var w in movementUI_.GetWidgets()) { collapsible_.Add(w); } RenameCollapsible(); }
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 Morph(DAZMorph m) { morph = m; checkbox = null; }
public BoolStorableParameterMonitorUI() { paramValue_ = new Checkbox( "Parameter value", null, Widget.Right | Widget.Disabled); }
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)); }