Skip to content
Snippets Groups Projects
Commit e01996e2 authored by Maximilian Giller's avatar Maximilian Giller :squid:
Browse files

Added instructions to menu

parent 380038e0
No related branches found
No related tags found
No related merge requests found
Pipeline #52771 passed
......@@ -4,6 +4,9 @@
<div id="box-select-layer"><div id="2d-graph"></div></div>
<section id="toolbar"></section>
<section id="tool-menu">
<div id="delete-menu" class="hidden">
<p>Drag and drop while pressing SHIFT to delete all the nodes that are being selected.</p>
</div>
<div id="collect-menu" class="hidden">
<h3>Collected items</h3>
<button id="clear-collection">Clear</button>
......
......@@ -2,6 +2,7 @@ import Tool from "./tool";
import { graph, state, renderer } from "../editor";
import * as Graph from "../graph";
import jquery from "jquery";
import ToolMenu from "./menus/toolmenu";
/**
* Only one instance of this should exist, since box-delete has to work on a global scale.
......@@ -9,7 +10,7 @@ import jquery from "jquery";
var deleteToolInstance = undefined; // Used for box delete
export default class DeleteTool extends Tool {
constructor(key) {
super("Delete", "delete", key);
super("Delete", "delete", key, new ToolMenu());
this.setupBoxSelect();
if (deleteToolInstance === undefined) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment