X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_intstring.cpp;h=e29199dd837d014e6f6c7fdde774e4fd4b7af0d0;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hp=1ae8284e602daf94e12011a68359c350044423b3;hpb=077db16bb2200d3f6e936c9da3d8fe2950317eae;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_intstring.cpp b/synfig-core/src/synfig/valuenode_intstring.cpp index 1ae8284..e29199d 100644 --- a/synfig-core/src/synfig/valuenode_intstring.cpp +++ b/synfig-core/src/synfig/valuenode_intstring.cpp @@ -54,6 +54,8 @@ using namespace synfig; ValueNode_IntString::ValueNode_IntString(const ValueBase &value): LinkableValueNode(value.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); switch(value.get_type()) { case ValueBase::TYPE_STRING: @@ -198,3 +200,29 @@ ValueNode_IntString::check_type(ValueBase::Type type) return type==ValueBase::TYPE_STRING; } + +LinkableValueNode::Vocab +ValueNode_IntString::get_children_vocab_vfunc()const +{ + if(children_vocab.size()) + return children_vocab; + + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"int") + .set_local_name(_("Int")) + .set_description(_("Value to convert to string")) + ); + + ret.push_back(ParamDesc(ValueBase(),"width") + .set_local_name(_("Width")) + .set_description(_("Width of the string")) + ); + + ret.push_back(ParamDesc(ValueBase(),"zero_pad") + .set_local_name(_("Zero Padded")) + .set_description(_("When checked, the string is left filled with zeros to match the width")) + ); + + return ret; +}