Config nodes do what they should do now. UX is still off, modifier keys do different things on MidiNodes and ConfigNodes.
This commit is contained in:
+7
-16
@@ -12,7 +12,7 @@ namespace VISEQ::GRAPH::NODES {
|
||||
class ConfigNode : public Node{
|
||||
|
||||
public:
|
||||
ConfigNode() : Node() {std::cout << "ConfigNode Constructor std" << std::endl;}
|
||||
ConfigNode() {std::cout << "ConfigNode Constructor std" << std::endl;}
|
||||
ConfigNode(Vec2Df position) : Node(position) {}
|
||||
|
||||
std::shared_ptr<ConfigNode> getPtr(){
|
||||
@@ -32,11 +32,13 @@ namespace VISEQ::GRAPH::NODES {
|
||||
float radius = 20.0f;
|
||||
|
||||
virtual NodeType getNodeType() const override {return nodeType;}
|
||||
|
||||
int GGate(){
|
||||
return 0;
|
||||
|
||||
virtual void trigger() override {}
|
||||
|
||||
virtual void setMode(int _mode) override {
|
||||
mode = _mode;
|
||||
}
|
||||
|
||||
|
||||
MIDI::MidiNote getNotes(){
|
||||
return midiNote;
|
||||
}
|
||||
@@ -66,19 +68,8 @@ namespace VISEQ::GRAPH::NODES {
|
||||
mode = state->node_mode;
|
||||
}
|
||||
|
||||
/*std::vector<std::weak_ptr<MidiNode>> getConnectedMidiNodes(){*/
|
||||
/* auto midi_conns = connections | RANGE_FILTER([](EDGES::SPTR_Edge c){ return c->start.lock()->getNodeType() == NodeType::MIDINODE || c->end.lock()->getNodeType() == NodeType::MIDINODE;}) | std::ranges::to<std::vector<std::shared_ptr<EDGES::Edge>>>();*/
|
||||
/* std::vector<std::weak_ptr<MidiNode>> midi_nodes;*/
|
||||
/* for(auto e : midi_conns){*/
|
||||
/* if(e->start.lock()->getNodeType() == NodeType::MIDINODE) midi_nodes.push_back(std::dynamic_pointer_cast<MidiNode>(e->start.lock()));*/
|
||||
/* if(e->end.lock()->getNodeType() == NodeType::MIDINODE) midi_nodes.push_back(std::dynamic_pointer_cast<MidiNode>(e->end.lock()));*/
|
||||
/* }*/
|
||||
/* return midi_nodes;*/
|
||||
/*}*/
|
||||
|
||||
void interact(){
|
||||
float wheel = GetMouseWheelMove();
|
||||
/*auto midi_nodes = getConnectedMidiNodes();*/
|
||||
|
||||
if(KEYS_DOWN.ctrl && !KEYS_DOWN.alt){
|
||||
switch(state->node_mode){
|
||||
|
||||
Reference in New Issue
Block a user