synfig::ValueNode_TwoTone::ValueNode_TwoTone(const ValueBase &value):LinkableValueNode(synfig::ValueBase::TYPE_GRADIENT)
{
+ Vocab ret(get_children_vocab());
+ set_children_vocab(ret);
switch(value.get_type())
{
case ValueBase::TYPE_GRADIENT:
{
return type==ValueBase::TYPE_GRADIENT;
}
+
+LinkableValueNode::Vocab
+ValueNode_TwoTone::get_children_vocab_vfunc()const
+{
+ if(children_vocab.size())
+ return children_vocab;
+
+ LinkableValueNode::Vocab ret;
+
+ ret.push_back(ParamDesc(ValueBase(),"color1")
+ .set_local_name(_("Color 1"))
+ .set_description(_("The start color of the gradient"))
+ );
+
+ ret.push_back(ParamDesc(ValueBase(),"color2")
+ .set_local_name(_("Color 2"))
+ .set_description(_("The end color of the gradient"))
+ );
+
+ return ret;
+}