mirror of
https://gitlab.com/cc-ru/ocelot/ocelot-desktop.git
synced 2026-03-26 01:12:48 +01:00
Add hint for Shift+LMB shortcut
This commit is contained in:
@@ -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)]()
|
||||
|
||||
@@ -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 = _
|
||||
|
||||
Reference in New Issue
Block a user