connecting and moving works. midi out also
This commit is contained in:
+12
-1
@@ -17,14 +17,25 @@ class Node : public Movable{
|
||||
|
||||
float radius;
|
||||
|
||||
int id;
|
||||
bool picked_up = false;
|
||||
bool hover_move = false;
|
||||
bool hover_connect = false;
|
||||
bool connecting = false;
|
||||
|
||||
int next = 0;
|
||||
|
||||
int midi_out = 0;
|
||||
|
||||
int midi_note = 0;
|
||||
int midi_cc = 0;
|
||||
|
||||
std::vector<Node*> connections;
|
||||
|
||||
Node* get_next(){
|
||||
next = (next+1) % connections.size();
|
||||
return connections[next];
|
||||
}
|
||||
|
||||
void draw(Vec2D<float> *mouse) {
|
||||
if(!hover_move) DrawCircle(position.x, position.y, radius, (Color){180, 210, 115, 255});
|
||||
if(hover_move) DrawCircle(position.x, position.y, radius, (Color){108, 153, 187, 255});
|
||||
|
||||
Reference in New Issue
Block a user