X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_cos.cpp;h=2eef6cdf5355bdced9e511c5e53075ae77fee0d2;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hp=17d49d6591974ea3070407a0626f3118ec100659;hpb=db91521de71f46f2debb4b3ef1edfe351aea3b2d;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_cos.cpp b/synfig-core/src/synfig/valuenode_cos.cpp index 17d49d6..2eef6cd 100644 --- a/synfig-core/src/synfig/valuenode_cos.cpp +++ b/synfig-core/src/synfig/valuenode_cos.cpp @@ -53,6 +53,8 @@ using namespace synfig; ValueNode_Cos::ValueNode_Cos(const ValueBase &value): LinkableValueNode(value.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); switch(value.get_type()) { case ValueBase::TYPE_REAL: @@ -182,3 +184,24 @@ ValueNode_Cos::get_link_index_from_name(const String &name)const throw Exception::BadLinkName(name); } + +LinkableValueNode::Vocab +ValueNode_Cos::get_children_vocab_vfunc()const +{ + if(children_vocab.size()) + return children_vocab; + + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"angle") + .set_local_name(_("Angle")) + .set_description(_("Value to calculate the cosine")) + ); + + ret.push_back(ParamDesc(ValueBase(),"amp") + .set_local_name(_("Amplitude")) + .set_description(_("Multiplier of the resulting cosine")) + ); + + return ret; +}