Ejemplo n.º 1
0
 public void SetColor(CustomColorSet ccSet, Color color)
 {
     if (Object.op_Inequality((Object)ccSet, (Object)this.linkCustomColorSet) || !Object.op_Inequality((Object)null, (Object)this.sampleColor))
     {
         return;
     }
     this.sampleColor.SetColor(color);
 }
Ejemplo n.º 2
0
 public void Close()
 {
     if (Object.op_Inequality((Object)null, (Object)this.sampleColor))
     {
         this.sampleColor.actUpdateColor = (Action <Color>)null;
     }
     this.customBase.customCtrl.showColorCvs = false;
     this.linkCustomColorSet = (CustomColorSet)null;
 }
Ejemplo n.º 3
0
 public void Setup(
     CustomColorSet ccSet,
     Color color,
     Action <Color> _actUpdateColor,
     bool _useAlpha)
 {
     this.linkCustomColorSet = ccSet;
     if (Object.op_Inequality((Object)null, (Object)this.sampleColor))
     {
         this.sampleColor.SetColor(color);
         this.sampleColor.actUpdateColor = _actUpdateColor;
     }
     this.customBase.customCtrl.showColorCvs = true;
     ((ReactiveProperty <bool>) this.cmpPickerRect.isAlpha).set_Value(_useAlpha);
     ((ReactiveProperty <bool>) this.cmpPickerSliderI.useAlpha).set_Value(_useAlpha);
 }