예제 #1
0
파일: Mix.cs 프로젝트: JoePelz/NodeShop
        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));
        }
예제 #2
0
파일: Grade.cs 프로젝트: JoePelz/NodeShop
        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;
        }