This commit is contained in:
Persephone Bubblegum-Holiday 2025-04-14 12:20:59 -07:00
parent e3270b14cd
commit 0f6c3bb1a3
5 changed files with 16 additions and 58 deletions

View file

@ -1,7 +1,6 @@
extends Control
class_name GL_Node_Map
var background: TextureRect
var holder: Control
var is_panning: bool = false
var last_mouse_pos: Vector2
@ -26,7 +25,6 @@ func _notification(what):
func _ready():
visible = false
background = get_node("Background")
holder = get_node("Holder")
optionsVar = get_node("MarginContainer/HBoxContainer/OptionButton")
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
@ -51,8 +49,6 @@ func _input(event: InputEvent) -> void:
match event.keycode:
KEY_ESCAPE:
visible = not visible
KEY_TAB:
background.self_modulate.a = abs(background.self_modulate.a - 1)
if not visible:
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
else: