protected override void createProperties() { base.createProperties(); Property p = new PropertyFloat(ratio, 0.0f, 1.0f, "Mix ratio"); p.eValueChanged += e_RatioChanged; properties["mixRatio"] = p; p = new PropertyButton("Swap", "Swap inputs A and B"); p.eValueChanged += e_SwapInputs; properties["btnSwap"] = p; properties.Add("inColorA", new PropertyColor(true, false)); properties.Add("inColorB", new PropertyColor(true, false)); properties.Add("outColor", new PropertyColor(false, true)); }
protected override void createProperties() { base.createProperties(); Property p = new PropertyFloat(0, -100, 100, "Black point"); p.eValueChanged += (s, e) => { soil(); }; properties["black"] = p; p = new PropertyFloat(1, -100, 100, "White point"); p.eValueChanged += (s, e) => { soil(); }; properties["white"] = p; p = new PropertyFloat(1, -100, 100, "Multiply"); p.eValueChanged += (s, e) => { soil(); }; properties["mult"] = p; p = new PropertyFloat(0, -100, 100, "Offset"); p.eValueChanged += (s, e) => { soil(); }; properties["add"] = p; }