X-Git-Url: https://git.pterodactylus.net/?p=synfig.git;a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_radialcomposite.cpp;h=c9f24cbf631271fa79c0f51510a59b5c40983557;hp=a889c78c2c509a3b906e7677db437ffad5053e21;hb=8eed22b9657ac7cb1881eab5c7b5c3d1f0c69468;hpb=72fee47109d8d1f6e4c5043ab60200e61357636a diff --git a/synfig-core/src/synfig/valuenode_radialcomposite.cpp b/synfig-core/src/synfig/valuenode_radialcomposite.cpp index a889c78..c9f24cb 100644 --- a/synfig-core/src/synfig/valuenode_radialcomposite.cpp +++ b/synfig-core/src/synfig/valuenode_radialcomposite.cpp @@ -313,3 +313,43 @@ ValueNode_RadialComposite::check_type(ValueBase::Type type) type==ValueBase::TYPE_VECTOR || type==ValueBase::TYPE_COLOR; } + +LinkableValueNode::Vocab +ValueNode_RadialComposite::get_param_vocab()const +{ + LinkableValueNode::Vocab ret; + + switch(get_type()) + { + case ValueBase::TYPE_COLOR: + ret.push_back(ParamDesc(ValueBase(),"y_luma") + .set_local_name(_("Luma")) + ); + ret.push_back(ParamDesc(ValueBase(),"saturation") + .set_local_name(_("Saturation")) + ); + ret.push_back(ParamDesc(ValueBase(),"hue") + .set_local_name(_("Hue")) + ); + ret.push_back(ParamDesc(ValueBase(),"alpha") + .set_local_name(_("Saturation")) + ); + return ret; + break; + case ValueBase::TYPE_VECTOR: + ret.push_back(ParamDesc(ValueBase(),"radius") + .set_local_name(_("Radius")) + .set_description(_("The length of the vector")) + ); + ret.push_back(ParamDesc(ValueBase(),"theta") + .set_local_name(_("Theta")) + .set_description(_("The angle of the vector with the X axis")) + ); + return ret; + break; + default: + break; + } + + return ret; +}