X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_compare.cpp;h=ba7abe61eedda3b6bc00c0112327d2dbdd497ddf;hb=8eed22b9657ac7cb1881eab5c7b5c3d1f0c69468;hp=68c34278977991f4b6c84c1363693bd9fd1abd28;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_compare.cpp b/synfig-core/src/synfig/valuenode_compare.cpp index 68c3427..ba7abe6 100644 --- a/synfig-core/src/synfig/valuenode_compare.cpp +++ b/synfig-core/src/synfig/valuenode_compare.cpp @@ -195,3 +195,36 @@ ValueNode_Compare::check_type(ValueBase::Type type) { return type==ValueBase::TYPE_BOOL; } + +LinkableValueNode::Vocab +ValueNode_Compare::get_param_vocab()const +{ + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"lhs") + .set_local_name(_("LHS")) + .set_description(_("The left side of the comparison")) + ); + + ret.push_back(ParamDesc(ValueBase(),"rhs") + .set_local_name(_("RHS")) + .set_description(_("The right side of the comparison")) + ); + + ret.push_back(ParamDesc(ValueBase(),"greater") + .set_local_name(_("Greater")) + .set_description(_("When checked, returns true if LHS > RHS")) + ); + + ret.push_back(ParamDesc(ValueBase(),"equal") + .set_local_name(_("Equal")) + .set_description(_("When checked, returns true if LHS = RHS")) + ); + + ret.push_back(ParamDesc(ValueBase(),"less") + .set_local_name(_("Less")) + .set_description(_("When checked, returns true if LHS < RHS")) + ); + + return ret; +}