ValueNode_TimeLoop::ValueNode_TimeLoop(const ValueNode::Handle &x):
LinkableValueNode(x->get_type())
{
+ Vocab ret(get_children_vocab());
+ set_children_vocab(ret);
set_link("link", x);
set_link("link_time", ValueNode_Const::create(Time(0)));
set_link("local_time", ValueNode_Const::create(Time(0)));
return true;
return false;
}
+
+
+LinkableValueNode::Vocab
+ValueNode_TimeLoop::get_children_vocab_vfunc()const
+{
+ if(children_vocab.size())
+ return children_vocab;
+
+ LinkableValueNode::Vocab ret;
+
+ ret.push_back(ParamDesc("link")
+ .set_local_name(_("Link"))
+ .set_description(_("The value node to time loop"))
+ );
+
+ ret.push_back(ParamDesc("link_time")
+ .set_local_name(_("Link Time"))
+ .set_description(_("Start time of the loop for the value node timeline"))
+ );
+
+ ret.push_back(ParamDesc("local_time")
+ .set_local_name(_("Local Time"))
+ .set_description(_("The time when the resulted loop starts"))
+ );
+
+ ret.push_back(ParamDesc("duration")
+ .set_local_name(_("Duration"))
+ .set_description(_("Lenght of the loop"))
+ );
+ return ret;
+}