-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTitleMenu.gd
87 lines (65 loc) · 2.55 KB
/
TitleMenu.gd
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
extends MarginContainer
var stringvar = "..."
func resetMenu():
stringvar = "..."
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
$VBoxContainer/Label.text = stringvar
# Button presses
func _on_grill_button_pressed():
get_tree().change_scene_to_file("res://Minigames/grillmaster/grillmaster.tscn")
func _on_grill_button_mouse_entered():
stringvar = "ORB SMASHER"
func _on_grill_button_mouse_exited():
resetMenu()
func _on_num_blocks_button_pressed():
get_tree().change_scene_to_file("res://Minigames/numblocks/numblocks.tscn")
func _on_num_blocks_button_mouse_entered():
stringvar = "NUMBER BLOCKS"
func _on_num_blocks_button_mouse_exited():
resetMenu()
func _on_shapeshifter_button_pressed():
get_tree().change_scene_to_file("res://Minigames/shapeshifter/shapeshifter.tscn")
func _on_shapeshifter_button_mouse_entered():
stringvar = "SHAPE SHIFTER"
func _on_shapeshifter_button_mouse_exited():
resetMenu()
func _on_balloon_button_pressed():
get_tree().change_scene_to_file("res://Minigames/balloon/balloon.tscn")
func _on_balloon_button_mouse_entered():
stringvar = "BALLOON"
func _on_balloon_button_mouse_exited():
resetMenu()
func _on_code_compare_button_pressed():
get_tree().change_scene_to_file("res://Minigames/codecompare/codecompare.tscn")
func _on_code_compare_button_mouse_entered():
stringvar = "CODE COMPARE"
func _on_code_compare_button_mouse_exited():
resetMenu()
func _on_pin_code_button_pressed() -> void:
get_tree().change_scene_to_file("res://Minigames/pincode/prelude.tscn")
func _on_pin_code_button_mouse_entered() -> void:
stringvar = "PIN CODE"
func _on_pin_code_button_mouse_exited() -> void:
resetMenu()
func _on_theswitch_button_pressed() -> void:
get_tree().change_scene_to_file("res://Minigames/theswitch/theswitch.tscn")
func _on_theswitch_button_mouse_entered() -> void:
stringvar = "THE SWITCH"
func _on_theswitch_button_mouse_exited() -> void:
resetMenu()
func _on_mastermind_button_pressed() -> void:
get_tree().change_scene_to_file("res://Minigames/mastermind/mastermind.tscn")
func _on_mastermind_button_mouse_entered() -> void:
stringvar = "MASTERMIND"
func _on_mastermind_button_mouse_exited() -> void:
resetMenu()
func _on_towers_button_pressed() -> void:
get_tree().change_scene_to_file("res://Minigames/towers/towers.tscn")
func _on_towers_button_mouse_entered() -> void:
stringvar = "TOWERS"
func _on_towers_button_mouse_exited() -> void:
resetMenu()