X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_gradientcolor.cpp;h=980cf08fcc3ed13e12d9bcce3d2286d2a091b243;hb=d4cb326591ea23f82d341eb368b3d183b46f56c7;hp=b4dd0ceeafbbb49dacf5d906aedba87239a2d099;hpb=db91521de71f46f2debb4b3ef1edfe351aea3b2d;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_gradientcolor.cpp b/synfig-core/src/synfig/valuenode_gradientcolor.cpp index b4dd0ce..980cf08 100644 --- a/synfig-core/src/synfig/valuenode_gradientcolor.cpp +++ b/synfig-core/src/synfig/valuenode_gradientcolor.cpp @@ -185,3 +185,26 @@ ValueNode_GradientColor::check_type(ValueBase::Type type) { return type==ValueBase::TYPE_COLOR; } + +LinkableValueNode::Vocab +ValueNode_GradientColor::get_children_vocab_vfunc()const +{ + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"gradient") + .set_local_name(_("Gradient")) + .set_description(_("The gradient where the color is picked from")) + ); + + ret.push_back(ParamDesc(ValueBase(),"index") + .set_local_name(_("Index")) + .set_description(_("The position of the color at the gradient (0,1]")) + ); + + ret.push_back(ParamDesc(ValueBase(),"loop") + .set_local_name(_("Loop")) + .set_description(_("When checked, the index would loop")) + ); + + return ret; +}