27 lines
792 B
GDScript
27 lines
792 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
|
|
|
|
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()
|