fishy loss of changes here...
This commit is contained in:
+4
-5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user