forked from misofort/TheLostRealm_Mizzy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain_menu.gd
More file actions
39 lines (25 loc) · 936 Bytes
/
main_menu.gd
File metadata and controls
39 lines (25 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
extends Control
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_start_button_pressed() -> void:
print("Start pressed")
$mainmenu_hover/mainmenu_click.play()
get_tree().change_scene_to_file("res://lv1draft.tscn")
func _on_settings_button_pressed() -> void:
print("Settings Pressed")
$mainmenu_hover/mainmenu_click.play()
get_tree().change_scene_to_file("res://settings.tscn")
func _on_exit_button_pressed() -> void:
print("Exit Pressed")
get_tree().quit()
$mainmenu_hover/mainmenu_click.play()
func _on_start_button_mouse_entered() -> void:
$mainmenu_hover.play()
func _on_settings_button_mouse_entered() -> void:
$mainmenu_hover.play()
func _on_exit_button_mouse_entered() -> void:
$mainmenu_hover.play()