Some progress on selecting, hovering but still buggy and not a good design really.
This commit is contained in:
+3
-6
@@ -8,14 +8,11 @@ namespace VISEQ::BASE {
|
||||
Interactable() {}
|
||||
virtual ~Interactable() {}
|
||||
|
||||
bool in_selection_rect = false;
|
||||
bool selected = false;
|
||||
|
||||
bool copied = false;
|
||||
bool highlighted = false;
|
||||
bool erase = false;
|
||||
bool is_hovering = false;
|
||||
|
||||
virtual bool hovering() = 0;
|
||||
virtual bool entered() {return false;};
|
||||
virtual bool exited() {return false;};
|
||||
|
||||
virtual bool clicked() {
|
||||
return hovering() && IsMouseButtonPressed(MOUSE_BUTTON_LEFT);
|
||||
|
||||
Reference in New Issue
Block a user