X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_subtract.cpp;h=34d9d56bae39ac4b13c52fe843fdb569b28cc400;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hp=15234203174db2f84985ad661bb0c17f9d310b88;hpb=db91521de71f46f2debb4b3ef1edfe351aea3b2d;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_subtract.cpp b/synfig-core/src/synfig/valuenode_subtract.cpp index 1523420..34d9d56 100644 --- a/synfig-core/src/synfig/valuenode_subtract.cpp +++ b/synfig-core/src/synfig/valuenode_subtract.cpp @@ -60,6 +60,8 @@ using namespace synfig; synfig::ValueNode_Subtract::ValueNode_Subtract(const ValueBase &value): LinkableValueNode(value.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); set_link("scalar",ValueNode_Const::create(Real(1.0))); ValueBase::Type id(value.get_type()); @@ -245,3 +247,29 @@ ValueNode_Subtract::check_type(ValueBase::Type type) || type==ValueBase::TYPE_TIME || type==ValueBase::TYPE_VECTOR; } + +LinkableValueNode::Vocab +ValueNode_Subtract::get_children_vocab_vfunc()const +{ + if(children_vocab.size()) + return children_vocab; + + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"lhs") + .set_local_name(_("LHS")) + .set_description(_("Left Hand Side of the subtraction")) + ); + + ret.push_back(ParamDesc(ValueBase(),"rhs") + .set_local_name(_("RHS")) + .set_description(_("Right Hand Side of the subtraction")) + ); + + ret.push_back(ParamDesc(ValueBase(),"scalar") + .set_local_name(_("Scalar")) + .set_description(_("Value that multiplies the subtraction")) + ); + + return ret; +}