summaryrefslogtreecommitdiff
path: root/rotord/src/rotor.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-11-21 12:36:36 +0000
committerTim Redfern <tim@eclectronics.org>2013-11-21 12:36:36 +0000
commit5eb823abb8ba91dbab098d7195094d0f76e4f332 (patch)
tree0c5b7b7e21fcf46e5c6d6b63db1de23483296537 /rotord/src/rotor.cpp
parentb46286b8262cd5a4b96ac318a6d85d3db39e09e5 (diff)
UI text node outline
Diffstat (limited to 'rotord/src/rotor.cpp')
-rw-r--r--rotord/src/rotor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/rotord/src/rotor.cpp b/rotord/src/rotor.cpp
index 0bb9341..b7bf642 100644
--- a/rotord/src/rotor.cpp
+++ b/rotord/src/rotor.cpp
@@ -77,6 +77,9 @@ Node_factory::Node_factory(){
add_type("echo_trails",new Echo_trails(),category["FX"]);
add_type("video_feedback",new Video_feedback(),category["FX"]);
+ category["UI"]=vector<Node*>();
+ add_type("ui_text",new UI_text(),category["UI"]);
+
}
bool Signal_input::connect(Node* source) {
connection=dynamic_cast<Signal_node*>(source);
@@ -135,6 +138,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;
if (_node->inputs.size()){
node["signal_inputs"]=Json::arrayValue;
for (auto& input: _node->inputs) {
@@ -204,6 +208,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);
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);