Give-LIFE-Cybers/Scripts/GL_Node_Map.gd
2025-04-08 17:02:42 -07:00

15 lines
322 B
GDScript

extends Control
func _ready():
visible = false
func _input(event: InputEvent) -> void:
if event is InputEventKey and event.pressed:
match(event.keycode):
KEY_ESCAPE:
visible = not visible
if visible:
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
else:
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)