summaryrefslogtreecommitdiff
path: root/rotord/src/rotor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/rotor.cpp')
-rw-r--r--rotord/src/rotor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/rotord/src/rotor.cpp b/rotord/src/rotor.cpp
index afb47e0..36eb2fa 100644
--- a/rotord/src/rotor.cpp
+++ b/rotord/src/rotor.cpp
@@ -8,6 +8,7 @@
#include "nodes_drawing.h"
#include "nodes_filters.h"
#include "nodes_transform.h"
+#include "nodes_UI.h"
using namespace Rotor;
using Poco::Logger;
@@ -79,6 +80,7 @@ Node_factory::Node_factory(){
category["UI"]=vector<Node*>();
add_type("ui_text",new UI_text(),category["UI"]);
+ add_type("number",new Number(),category["UI"]);
}
double Signal_input::get_time_used(){
@@ -162,7 +164,7 @@ Json::Value Node_factory::list_node(Rotor::Node* _node){
if (dynamic_cast<Image_node*> (_node)!=nullptr) node["output"]="image";
node["description"]=_node->description;
node["NODEID"]=_node->NODEID;
- node["UItype"]=_node->UItype;
+ //node["UItype"]=_node->UItype;
if (_node->inputs.size()){
node["signal_inputs"]=Json::arrayValue;
for (auto& input: _node->inputs) {
@@ -232,7 +234,7 @@ void Node_factory::list_node(Rotor::Node* type,xmlIO XML,int i){
XML.addAttribute("node","title",type->title,i);
XML.addAttribute("node","description",type->description,i);
XML.addAttribute("node","NODEID",type->NODEID,i);
- XML.addAttribute("node","UItype",type->UItype,i);
+ //XML.addAttribute("node","UItype",type->UItype,i);
if (dynamic_cast<Signal_node*> (type)!=nullptr) XML.addAttribute("node","output","signal",i);
if (dynamic_cast<Image_node*> (type)!=nullptr) XML.addAttribute("node","output","image",i);
XML.pushTag("node",i);