Début du dialogue_screens
This commit is contained in:
+7
-1
@@ -1,9 +1,12 @@
|
||||
extends Control
|
||||
|
||||
signal new_game_pressed
|
||||
signal quit_game
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
self.get_node("MenuContainer/NewGame").pressed.connect(_on_new_game_pressed)
|
||||
self.get_node("MenuContainer/QuitGame").pressed.connect(_on_quit_game_pressed)
|
||||
pass
|
||||
|
||||
|
||||
@@ -13,6 +16,9 @@ func _process(delta: float) -> void:
|
||||
|
||||
|
||||
func _on_new_game_pressed() -> void:
|
||||
emit_signal("new_game_pressed")
|
||||
new_game_pressed.emit()
|
||||
print("Starting New Game...")
|
||||
pass # Replace with function body.
|
||||
|
||||
func _on_quit_game_pressed():
|
||||
get_tree().quit()
|
||||
|
||||
Reference in New Issue
Block a user