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); }
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; }
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); }