fishy loss of changes here...

This commit is contained in:
Sebastian
2024-10-30 14:55:24 +01:00
parent c0f5138765
commit f7a13e48b7
8 changed files with 241 additions and 60 deletions
+4 -5
View File
@@ -4,6 +4,7 @@
#include <raylib.h>
#include "datatypes.h"
#include "graph-item.h"
#include "moveable.h"
#include "raymath.h"
@@ -15,19 +16,17 @@ struct NodeMidiOut{
bool enabled;
};
class Node : public Movable{
class Node : public Movable, public GraphItem{
public:
Node() {}
Node(int id, float x, float y, float r) : Movable(Vec2D<float>(x, y), 0.0f), radius(r), id(id) {}
Node(int id, Vec2D<float> p, float r) : Movable(p, 0.0f), radius(r), id(id) {}
Node(int id, float x, float y, float r) : Movable(Vec2D<float>(x, y), 0.0f), GraphItem(id), radius(r) {}
Node(int id, Vec2D<float> p, float r) : Movable(p, 0.0f), GraphItem(id), radius(r) {}
Node *neighbor = nullptr;
float radius;
int id;
bool picked_up = false;
bool dragging = false;
bool in_rect = false;