X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_step.cpp;h=337657a548730423ef3f8a36148e0cd59f422ef6;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hp=3b5c913580a555a0927739fac94f78cb4eea6930;hpb=c11c4966980ed301f40b3dcc24e4fbec525f93e3;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_step.cpp b/synfig-core/src/synfig/valuenode_step.cpp index 3b5c913..337657a 100644 --- a/synfig-core/src/synfig/valuenode_step.cpp +++ b/synfig-core/src/synfig/valuenode_step.cpp @@ -54,6 +54,8 @@ using namespace synfig; ValueNode_Step::ValueNode_Step(const ValueBase &value): LinkableValueNode(value.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); set_link("duration", ValueNode_Const::create(Time(1))); set_link("start_time", ValueNode_Const::create(Time(0))); set_link("intersection", ValueNode_Const::create(Real(0.5))); @@ -230,3 +232,34 @@ ValueNode_Step::get_link_index_from_name(const String &name)const throw Exception::BadLinkName(name); } + +LinkableValueNode::Vocab +ValueNode_Step::get_children_vocab_vfunc()const +{ + if(children_vocab.size()) + return children_vocab; + + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"link") + .set_local_name(_("Link")) + .set_description(_("The value node used to make the step")) + ); + + ret.push_back(ParamDesc(ValueBase(),"duration") + .set_local_name(_("Duration")) + .set_description(_("The duration of the step")) + ); + + ret.push_back(ParamDesc(ValueBase(),"start_time") + .set_local_name(_("Start Time")) + .set_description(_("The time when the step conversion starts")) + ); + + ret.push_back(ParamDesc(ValueBase(),"intersection") + .set_local_name(_("Intersection")) + .set_description(_("Value that define whether the step is centerd on the value [0,1]")) + ); + + return ret; +}