Esempio n. 1
0
            private void CreateElements()
            {
                this.toggleBox = new NamedCheckbox(this.isEnabled, null, (val) =>
                {
                    this.changed   = true;
                    this.isEnabled = val;
                });

                this.timeSlider = new RangedSingleSlider(this.time, 0f, 1f, "time", (val) =>
                {
                    this.changed = true;
                    this.time    = val;
                });

                this.alphaSlider = new RangedSingleSlider(this.value, 0f, 1f, "alpha", (val) =>
                {
                    this.changed = true;
                    this.value   = val;
                });
            }
Esempio n. 2
0
 internal Checkbox(Boolean inValue, String name, Action <Boolean> onChanged)
 {
     this.elem = new NamedCheckbox(inValue, name, onChanged);
 }