2023-10-08 12:45:25 +02:00
|
|
|
extends Control
|
|
|
|
|
|
|
|
signal on_resume()
|
|
|
|
|
|
|
|
func show_menu():
|
|
|
|
show()
|
|
|
|
|
|
|
|
func hide_menu():
|
|
|
|
hide()
|
|
|
|
|
|
|
|
func _on_resume_button_pressed():
|
2023-10-18 06:09:00 +02:00
|
|
|
on_resume.emit()
|
|
|
|
|
2023-10-25 12:25:36 +02:00
|
|
|
func _on_resume_hold():
|
|
|
|
$Panel/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer/Resume.modulate = Color(0.541176, 0.541176, 0.541176, 1)
|
|
|
|
|
|
|
|
func _on_resume_release():
|
|
|
|
$Panel/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer/Resume.modulate = Color(1, 1, 1, 1)
|
|
|
|
|
2023-10-18 06:09:00 +02:00
|
|
|
func _on_main_menu_pressed():
|
|
|
|
on_resume.emit()
|
2023-10-25 12:25:36 +02:00
|
|
|
get_tree().change_scene_to_file("res://scenes/ui/main_menu.tscn")
|
|
|
|
|
|
|
|
func _on_main_menu_hold():
|
|
|
|
$Panel/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer2/MainMenu.modulate = Color(0.541176, 0.541176, 0.541176, 1)
|
|
|
|
|
|
|
|
func _on_main_menu_release():
|
|
|
|
$Panel/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer2/MainMenu.modulate = Color(1, 1, 1, 1)
|