This repository has been archived on 2023-02-28. You can view files and clone it, but cannot push or open issues or pull requests.
Boups/Scenes/Scripts/Screen_Menu.gd

28 lines
509 B
GDScript3
Raw Normal View History

extends Control
onready var hover_sound = $"Hover"
2023-02-26 20:37:46 +01:00
onready var help = $"../Help"
2023-02-26 17:39:03 +01:00
func _on_PlayButton_pressed() -> void:
2023-02-26 20:50:11 +01:00
get_tree().change_scene("res://Scenes/DesktopScreen.tscn")
func _on_Help_Button_pressed() -> void:
2023-02-26 20:37:46 +01:00
help.visible = true
func _on_Quit_Button_pressed() -> void:
2023-02-26 17:39:03 +01:00
get_tree().quit()
func _on_PlayButton_mouse_entered() -> void:
2023-02-26 17:39:03 +01:00
hover_sound.play()
func _on_Quit_Button_mouse_entered() -> void:
2023-02-26 17:39:03 +01:00
hover_sound.play()
func _on_Help_Button_mouse_entered() -> void:
2023-02-26 17:39:03 +01:00
hover_sound.play()