bordello/Scripts/main_menu.gd
2023-06-06 13:35:20 +10:00

19 lines
522 B
GDScript

extends Control
func _on_button_pressed():
get_tree().change_scene_to_file("res://Scenes/worker_editor.tscn")
func _on_button_2_pressed():
get_tree().change_scene_to_file("res://Scenes/client_editor.tscn")
func _on_play_game_pressed():
get_tree().change_scene_to_file("res://Scenes/gameplay.tscn")
func _on_check_button_toggled(button_pressed):
if button_pressed:
$"Worker Deck".visible = true
$"Task Deck".visible = true
if not button_pressed:
$"Worker Deck".visible = false
$"Task Deck".visible = false