move multiple nodes around with selection box
This commit is contained in:
@@ -53,6 +53,10 @@ class ConnectionManager{
|
||||
return paths.at(return_path)->v1 == current ? paths.at(return_path)->v2 : paths.at(return_path)->v1;
|
||||
}
|
||||
|
||||
void addConnection(Node *from, Node *to){
|
||||
connections.emplace(connections.end(), from, to);
|
||||
}
|
||||
|
||||
void drawConnections(Vec2D<float> *mouse_pos, Camera2D *cam){
|
||||
std::erase_if(connections, [](Connection c){ return c.remove == true;});
|
||||
for(auto& c : connections){
|
||||
|
||||
Reference in New Issue
Block a user