Dragging and selecting works. Copy / Paste does not copy connectors yet.
This commit is contained in:
+3
-3
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "draggable.h"
|
||||
#include "state.h"
|
||||
#include "vmath.h"
|
||||
#include <memory>
|
||||
|
||||
namespace VISEQ::BASE {
|
||||
@@ -19,8 +19,8 @@ namespace VISEQ::BASE {
|
||||
connectables.emplace_back(this);
|
||||
}
|
||||
|
||||
virtual void drag() override {
|
||||
DrawLineV(position, MOD_MOUSE, (Color){229, 181, 103, 255});
|
||||
virtual void drag(Vec2Df new_position) override {
|
||||
DrawLineV(position, new_position, (Color){229, 181, 103, 255});
|
||||
}
|
||||
|
||||
void putDown() override {
|
||||
|
||||
Reference in New Issue
Block a user