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.colorEntry = new NamedColorTextEntry(this.value, null, (val) =>
                {
                    this.changed = true;
                    this.value   = val;
                });
            }
Esempio n. 2
0
 internal TextEntry(Color inValue, String name, Action <Color> onChanged)
 {
     this.elem = new NamedColorTextEntry(inValue, name, onChanged);
 }