X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_linear.cpp;h=2fabe010938af34f0de9b094e3645b1b83565452;hb=d4cb326591ea23f82d341eb368b3d183b46f56c7;hp=418305df4c6f3a8d80c4ff1b4dd50a8c124a7979;hpb=db91521de71f46f2debb4b3ef1edfe351aea3b2d;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_linear.cpp b/synfig-core/src/synfig/valuenode_linear.cpp index 418305d..2fabe01 100644 --- a/synfig-core/src/synfig/valuenode_linear.cpp +++ b/synfig-core/src/synfig/valuenode_linear.cpp @@ -225,3 +225,37 @@ ValueNode_Linear::get_link_index_from_name(const String &name)const throw Exception::BadLinkName(name); } + + +LinkableValueNode::Vocab +ValueNode_Linear::get_children_vocab_vfunc()const +{ + LinkableValueNode::Vocab ret; + + switch(get_type()) + { + case ValueBase::TYPE_ANGLE: + case ValueBase::TYPE_COLOR: + case ValueBase::TYPE_INTEGER: + case ValueBase::TYPE_REAL: + case ValueBase::TYPE_TIME: + ret.push_back(ParamDesc(ValueBase(),"slope") + .set_local_name(_("Rate")) + .set_description(_("Value that is multiplied by the current time (in seconds)")) + ); + break; + case ValueBase::TYPE_VECTOR: + default: + ret.push_back(ParamDesc(ValueBase(),"slope") + .set_local_name(_("Slope")) + .set_description(_("Value that is multiplied by the current time (in seconds)")) + ); + } + + ret.push_back(ParamDesc(ValueBase(),"offset") + .set_local_name(_("Offset")) + .set_description(_("Returned value when the current time is zero")) + ); + + return ret; +}