- if(i==0)
- switch(get_type())
- {
- case ValueBase::TYPE_ANGLE:
- case ValueBase::TYPE_COLOR:
- case ValueBase::TYPE_INTEGER:
- case ValueBase::TYPE_REAL:
- case ValueBase::TYPE_TIME:
- return _("Rate");
- case ValueBase::TYPE_VECTOR:
- default:
- return _("Slope");
- }
- if(i==1)
- return _("Offset");
- return String();
-}
+ switch(get_type())
+ {
+ case ValueBase::TYPE_ANGLE:
+ case ValueBase::TYPE_COLOR:
+ case ValueBase::TYPE_INTEGER:
+ case ValueBase::TYPE_REAL:
+ case ValueBase::TYPE_TIME:
+ ret.push_back(ParamDesc(ValueBase(),"slope")
+ .set_local_name(_("Rate"))
+ .set_description(_("Value that is multiplied by the current time (in seconds)"))
+ );
+ break;
+ case ValueBase::TYPE_VECTOR:
+ default:
+ ret.push_back(ParamDesc(ValueBase(),"slope")
+ .set_local_name(_("Slope"))
+ .set_description(_("Value that is multiplied by the current time (in seconds)"))
+ );
+ }