X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_stripes.cpp;h=f2141768bf3c552b5dda7d13ae55fc1fdbdff47b;hb=d4cb326591ea23f82d341eb368b3d183b46f56c7;hp=ce4b694bf3483c73f03289bcd56f2fe7625103de;hpb=adfc80c126f482d7ea2bac38001a2c4a7c7df88c;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_stripes.cpp b/synfig-core/src/synfig/valuenode_stripes.cpp index ce4b694..f214176 100644 --- a/synfig-core/src/synfig/valuenode_stripes.cpp +++ b/synfig-core/src/synfig/valuenode_stripes.cpp @@ -233,3 +233,31 @@ ValueNode_Stripes::check_type(ValueBase::Type type) { return type==ValueBase::TYPE_GRADIENT; } + +LinkableValueNode::Vocab +ValueNode_Stripes::get_children_vocab_vfunc()const +{ + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"color1") + .set_local_name(_("Color 1")) + .set_description(_("One color of the gradient stripes")) + ); + + ret.push_back(ParamDesc(ValueBase(),"color2") + .set_local_name(_("Color 2")) + .set_description(_("Other color of the gradient stripes")) + ); + + ret.push_back(ParamDesc(ValueBase(),"stripes") + .set_local_name(_("Stripe Count")) + .set_description(_("Number of stripes in the gradient")) + ); + + ret.push_back(ParamDesc(ValueBase(),"width") + .set_local_name(_("Width")) + .set_description(_("Width of stripes in the gradient between [0,1]")) + ); + + return ret; +}