education-apps/podbooker/ResetMenu.gd

21 lines
542 B
GDScript3
Raw Normal View History

2022-10-21 09:42:42 +00:00
extends Panel
2023-03-06 22:52:14 +00:00
@onready var timer = get_node("%time")
@onready var important_vars = $"%impvars"
@onready var booking_screen = $"%BookingScreen"
@onready var lesson_grid = $"%LessonGrid"
@onready var button_grid = $"%ButtonGrid"
@onready var reset_menu = $"%ResetMenu"
@onready var password_field = $"%PasswordField"
2022-10-21 09:42:42 +00:00
func _on_ResetButton_pressed():
if password_field.text == "Heather":
get_tree().reload_current_scene()
func _on_CancelReset_pressed():
reset_menu.visible = false
lesson_grid.visible = true
button_grid.visible = true