X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_repeat_gradient.cpp;h=306b3932beec575ba02aa8a6ed957c07e37f7ac5;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hp=c9ad14ace50b285bac82547897ec59080ec023e7;hpb=adfc80c126f482d7ea2bac38001a2c4a7c7df88c;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_repeat_gradient.cpp b/synfig-core/src/synfig/valuenode_repeat_gradient.cpp index c9ad14a..306b393 100644 --- a/synfig-core/src/synfig/valuenode_repeat_gradient.cpp +++ b/synfig-core/src/synfig/valuenode_repeat_gradient.cpp @@ -55,6 +55,8 @@ using namespace synfig; synfig::ValueNode_Repeat_Gradient::ValueNode_Repeat_Gradient(const Gradient& x):LinkableValueNode(synfig::ValueBase::TYPE_GRADIENT) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); set_link("gradient",ValueNode_Const::create(x)); set_link("count",count_=ValueNode_Const::create(int(3))); set_link("width",ValueNode_Const::create(0.5)); @@ -242,3 +244,49 @@ ValueNode_Repeat_Gradient::check_type(ValueBase::Type type) { return type==ValueBase::TYPE_GRADIENT; } + +LinkableValueNode::Vocab +ValueNode_Repeat_Gradient::get_children_vocab_vfunc()const +{ + if(children_vocab.size()) + return children_vocab; + + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"gradient") + .set_local_name(_("Gradient")) + .set_description(_("The source gradient to repeat")) + ); + + ret.push_back(ParamDesc(ValueBase(),"count") + .set_local_name(_("Count")) + .set_description(_("The number of repetition of the gradient")) + ); + + ret.push_back(ParamDesc(ValueBase(),"width") + .set_local_name(_("Width")) + .set_description(_("Specifies how much biased is the source gradeint in the repetition [0,1]")) + ); + + ret.push_back(ParamDesc(ValueBase(),"specify_start") + .set_local_name(_("Specify Start")) + .set_description(_("When checked, 'Start Color' is used as the start of the resulting gradient")) + ); + + ret.push_back(ParamDesc(ValueBase(),"specify_end") + .set_local_name(_("Specify End")) + .set_description(_("When checked, 'End Color' is used as the start of the resulting gradient")) + ); + + ret.push_back(ParamDesc(ValueBase(),"start_color") + .set_local_name(_("Start Color")) + .set_description(_("Used as the start of the resulting gradient")) + ); + + ret.push_back(ParamDesc(ValueBase(),"end_color") + .set_local_name(_("End Color")) + .set_description(_("Used as the end of the resulting gradient")) + ); + + return ret; +}