X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_blinecalcwidth.cpp;h=d78f99aef105f9123c82dd098481f9a99592e85f;hb=d4cb326591ea23f82d341eb368b3d183b46f56c7;hp=4d8ee0e3b5c0dad2d69c23c2755fbb2d6c4ffe81;hpb=adfc80c126f482d7ea2bac38001a2c4a7c7df88c;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_blinecalcwidth.cpp b/synfig-core/src/synfig/valuenode_blinecalcwidth.cpp index 4d8ee0e..d78f99a 100644 --- a/synfig-core/src/synfig/valuenode_blinecalcwidth.cpp +++ b/synfig-core/src/synfig/valuenode_blinecalcwidth.cpp @@ -228,3 +228,32 @@ ValueNode_BLineCalcWidth::check_type(ValueBase::Type type) { return type==ValueBase::TYPE_REAL; } + +LinkableValueNode::Vocab +ValueNode_BLineCalcWidth::get_children_vocab_vfunc()const +{ + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"bline") + .set_local_name(_("BLine")) + .set_description(_("The BLine where the width is linked to")) + ); + + ret.push_back(ParamDesc(ValueBase(),"loop") + .set_local_name(_("Loop")) + .set_description(_("When checked, the amount would loop")) + ); + + ret.push_back(ParamDesc(ValueBase(),"amount") + .set_local_name(_("Amount")) + .set_description(_("The position of the linked width on the BLine (0,1]")) + ); + + ret.push_back(ParamDesc(ValueBase(),"scale") + .set_local_name(_("Scale")) + .set_description(_("Scale of the width")) + ); + + return ret; +} +