示例#1
0
        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);
        }
示例#2
0
        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();
        }
示例#3
0
        public DurationWidgets(
            string name, TypeChangedCallback callback = null, int flags = 0)
            : base(flags)
        {
            name_     = name;
            callback_ = callback;

            string typeLabel = "";

            if (name == "")
            {
                typeLabel = "Duration type";
            }
            else
            {
                typeLabel = name + " duration type";
            }

            durationType_ = new FactoryStringList <DurationFactory, IDuration>(
                typeLabel, "", TypeChanged, flags);
        }