Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public RandomDurationUI(string name, int flags = 0)
     : base(name)
 {
     durationWidgets_ = new RandomizableTimeWidgets(
         MakeText("Duration"), flags);
 }