Ejemplo n.º 1
0
 public override void PreOpen()
 {
     base.PreOpen();
     windowRect              = new Rect(windowRect.position, _settings.ColorPickerSize).ExpandedBy(this.Margin);
     _model.Size             = _settings.ColorPickerSize;
     _model.PalletSize       = new Vector2(DrawUtility.MaxRGBValue, _defaultPalletHeight);
     _model.SliderSize       = new Vector2(GenUI.GapWide, _defaultPalletHeight / 3);
     _model.RgbTextFieldSize = new Vector2(400f, 100f);
     _colorPicker.Build(_model);
 }