Client/scripts/ui/swap_menu.gd
Kevin Schmidt b1c2dd4eb5
All checks were successful
Quality Check / Linting (push) Successful in 7s
TD-18: Setup Matchmaking
2025-03-04 15:25:27 +01:00

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