15 lines
236 B
GDScript3
15 lines
236 B
GDScript3
|
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
|