education-apps/podbooker/ResetMenu.gd

21 lines
535 B
GDScript3
Raw Normal View History

2022-10-21 09:42:42 +00:00
extends Panel
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"
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