X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_sine.cpp;h=17d8efcfcc5c970e849287244f707655eec17859;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hp=9aaaee2118576c85ac199cb5fd5c80a8b0e2dbe0;hpb=5db17dd500c44a59e62bc52cf1c22392edc972a8;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_sine.cpp b/synfig-core/src/synfig/valuenode_sine.cpp index 9aaaee2..17d8efc 100644 --- a/synfig-core/src/synfig/valuenode_sine.cpp +++ b/synfig-core/src/synfig/valuenode_sine.cpp @@ -53,6 +53,8 @@ using namespace synfig; ValueNode_Sine::ValueNode_Sine(const ValueBase &value): LinkableValueNode(value.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); switch(value.get_type()) { case ValueBase::TYPE_REAL: @@ -179,3 +181,24 @@ ValueNode_Sine::get_link_index_from_name(const String &name)const throw Exception::BadLinkName(name); } + +LinkableValueNode::Vocab +ValueNode_Sine::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(_("The angle where the sine is calculated from")) + ); + + ret.push_back(ParamDesc(ValueBase(),"amp") + .set_local_name(_("Amplitude")) + .set_description(_("The value that multiplies the resulting sine")) + ); + + return ret; +}