public ColorGUI() : base() { this.floatGUIR = new FloatGUI() { Title = "R" }; this.floatGUIG = new FloatGUI() { Title = "G" }; this.floatGUIB = new FloatGUI() { Title = "B" }; this.floatGUIA = new FloatGUI() { Title = "A" }; // NOTE: // Use this.Property to update each FloatGUI. this.Value = XJGUILayout.DefaultValueColor; this.MinValue = XJGUILayout.DefaultMinValueColor; this.MaxValue = XJGUILayout.DefaultMaxValueColor; this.HSV = XJGUILayout.DefaultHSV; }
public Vector4GUI() : base() { this.floatGUIX = new FloatGUI() { Title = "X" }; this.floatGUIY = new FloatGUI() { Title = "Y" }; this.floatGUIZ = new FloatGUI() { Title = "Z" }; this.floatGUIW = new FloatGUI() { Title = "W" }; // NOTE: // Set min/max value first. If not, "Value" will collect with min/ max value 0. this.MinValue = XJGUILayout.DefaultMinValueVector4; this.MaxValue = XJGUILayout.DefaultMaxValueVector4; this.Value = XJGUILayout.DefaultValueVector4; }