Add hint for Shift+LMB shortcut

This commit is contained in:
UnicornFreedom
2022-05-14 16:32:52 +02:00
parent 8b3a479918
commit 8b783be8ae
2 changed files with 3 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ trait Node extends Widget with DragHandler with ClickHandler with HoverHandler {
protected val canOpen = false
protected val exposeAddress = true
private var isMoving = false
protected var isMoving = false
private var grabPoint: Vector2D = Vector2D(0, 0)
protected val _connections: ArrayBuffer[(NodePort, Node, NodePort)] = ArrayBuffer[(NodePort, Node, NodePort)]()

View File

@@ -195,6 +195,8 @@ class ComputerNode(val computer: Case, setup: Boolean = true) extends Node {
super.update()
if (!isRunning && soundComputerRunning.isPlaying)
soundComputerRunning.stop()
if (isHovered || isMoving)
root.get.statusBar.addKeyMouseEntry("icons/LMB", "SHIFT", if (isRunning) "Turn Off" else "Turn On")
}
private var currentWindow: ComputerWindow = _