Drag selection and snap to grid ok. Deselect not working though...

This commit is contained in:
Sebastian
2024-11-26 01:58:09 +01:00
parent 9c0aac8618
commit 813958002b
9 changed files with 231 additions and 180 deletions
+5 -2
View File
@@ -2,6 +2,7 @@
#include "datatypes.h"
#include "raylib.h"
#include "vmath.h"
namespace VISEQ::BASE {
class Interactable{
@@ -13,7 +14,7 @@ namespace VISEQ::BASE {
}
virtual ~Interactable() {}
bool is_hovering = false;
int z_index = 0;
@@ -33,9 +34,11 @@ namespace VISEQ::BASE {
virtual bool released() {
return IsMouseButtonReleased(MOUSE_BUTTON_LEFT);
}
}
virtual GRAPH::GraphItemType getType() = 0;
virtual void pickUp() = 0;
virtual void pickUp(Vec2Df position) = 0;
virtual void drag() = 0;
virtual void putDown() = 0;
};