projektluzid/start.gd
2025-05-26 03:06:38 +02:00

28 lines
813 B
GDScript

extends Control
@onready var start_button = get_node("TextureRect/MarginContainer/HBoxContainer/VBoxContainer/PlayButton")
@onready var quit_button = get_node("TextureRect/MarginContainer/HBoxContainer/VBoxContainer/QuitButton")
@onready var levellist = $TextureRect/MarginContainer/HBoxContainer/LevelList
var playbutton = false
var stringing = "hi"
func main():
print("Hey!")
func _ready():
print("READY!!! >w<")
levellist.hide()
# start_button.pressed.connect(_start_button_pressed)
# quit_button.pressed.connect(_quit_button_pressed)
func _start_button_pressed():
if playbutton == false:
playbutton = true
levellist.show()
elif playbutton == true:
playbutton = false
levellist.hide()
# get_tree().change_scene_to_file("res://Level_Core.tscn")
func _quit_button_pressed():
get_tree().quit()