Drag selection and snap to grid ok. Deselect not working though...
This commit is contained in:
+5
-2
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user