-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathMainMenu.gd
32 lines (23 loc) · 969 Bytes
/
MainMenu.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
extends Control
func _ready():
TranslationServer.add_translation( load("res://translation/translation.de.translation"))
TranslationServer.add_translation( load("res://translation/translation.en.translation"))
func _on_ButtonQuit_pressed():
get_tree().quit()
func _on_ButtonNewGame_pressed():
pass # replace with function body
self.hide()
get_tree().get_root().get_node("Control/menu/networkPanel").show()
get_tree().get_root().get_node("Control/menu/Highscore").hide()
func _on_HighScore_pressed():
pass # replace with function body
self.hide()
get_tree().get_root().get_node("Control/menu/networkPanel").hide()
get_tree().get_root().get_node("Control/menu/Highscore").show()
func _on_Settings_pressed():
pass # replace with function body
get_tree().get_root().get_node("Control/menu/Settings").show()
func _on_PopupMenu_visibility_changed():
if visible:
get_node("VBoxContainer/ButtonNewGame").grab_focus()
pass # replace with function body