X-Git-Url: https://git.pterodactylus.net/?p=synfig.git;a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_blinecalctangent.cpp;h=e5959158b8c854d3f7847874e9a2c8803ce6bc60;hp=3a3c2cc209797ddde008cc78e3d6d5d287b80b1b;hb=8eed22b9657ac7cb1881eab5c7b5c3d1f0c69468;hpb=72fee47109d8d1f6e4c5043ab60200e61357636a diff --git a/synfig-core/src/synfig/valuenode_blinecalctangent.cpp b/synfig-core/src/synfig/valuenode_blinecalctangent.cpp index 3a3c2cc..e595915 100644 --- a/synfig-core/src/synfig/valuenode_blinecalctangent.cpp +++ b/synfig-core/src/synfig/valuenode_blinecalctangent.cpp @@ -269,3 +269,40 @@ ValueNode_BLineCalcTangent::check_type(ValueBase::Type type) type==ValueBase::TYPE_REAL || type==ValueBase::TYPE_VECTOR); } + +LinkableValueNode::Vocab +ValueNode_BLineCalcTangent::get_param_vocab()const +{ + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"bline") + .set_local_name(_("BLine")) + .set_description(_("The BLine where the tangent 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 tangent on the BLine (0,1]")) + ); + + ret.push_back(ParamDesc(ValueBase(),"offset") + .set_local_name(_("Offset")) + .set_description(_("Angle offset of the tangent")) + ); + + ret.push_back(ParamDesc(ValueBase(),"scale") + .set_local_name(_("Scale")) + .set_description(_("Scale of the tangent")) + ); + + ret.push_back(ParamDesc(ValueBase(),"fixed_length") + .set_local_name(_("Fixed Length")) + .set_description(_("When checked, the tangent's length is fixed")) + ); + return ret; +}