X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_or.cpp;h=4cfff5c764f4111021138aee021c59911cc9e3b3;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hp=a2d9e71ac5b9f711edde3bb4e6a4366a6bb9940b;hpb=adfc80c126f482d7ea2bac38001a2c4a7c7df88c;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_or.cpp b/synfig-core/src/synfig/valuenode_or.cpp index a2d9e71..4cfff5c 100644 --- a/synfig-core/src/synfig/valuenode_or.cpp +++ b/synfig-core/src/synfig/valuenode_or.cpp @@ -54,6 +54,8 @@ using namespace synfig; ValueNode_Or::ValueNode_Or(const ValueBase &x): LinkableValueNode(x.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); bool value(x.get(bool())); set_link("link1", ValueNode_Const::create(bool(false))); @@ -166,3 +168,24 @@ ValueNode_Or::check_type(ValueBase::Type type) { return type==ValueBase::TYPE_BOOL; } + +LinkableValueNode::Vocab +ValueNode_Or::get_children_vocab_vfunc()const +{ + if(children_vocab.size()) + return children_vocab; + + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"link1") + .set_local_name(_("Link1")) + .set_description(_("Value node used for the OR boolean operation")) + ); + + ret.push_back(ParamDesc(ValueBase(),"link2") + .set_local_name(_("Link2")) + .set_description(_("Value node used for the OR boolean operation")) + ); + + return ret; +}