14 lines
236 B
GDScript
14 lines
236 B
GDScript
extends Button
|
|
|
|
@export var menu: Control
|
|
|
|
|
|
func _ready() -> void:
|
|
connect("pressed", _on_Button_pressed)
|
|
|
|
|
|
func _on_Button_pressed() -> void:
|
|
if not menu:
|
|
push_error("Menu to swap to not configgured")
|
|
return
|
|
menu.visible = true
|