summaryrefslogtreecommitdiffstats
path: root/scripts/GUI.gd
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@valuemotive.com>2020-08-01 20:27:03 +0300
committerJan Tuomi <jan.tuomi@valuemotive.com>2020-08-01 20:27:03 +0300
commitc438ce2976c4dda931918c019a25e00104d0cbc2 (patch)
tree5e8a1a6818fe82d6a51fba3a1040a40c1f6bad94 /scripts/GUI.gd
parentf89994a8558ba59388c77b968ce5712bd709e15a (diff)
Improve dialogue system
Diffstat (limited to 'scripts/GUI.gd')
-rw-r--r--scripts/GUI.gd9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/GUI.gd b/scripts/GUI.gd
index a4ec573..de1106f 100644
--- a/scripts/GUI.gd
+++ b/scripts/GUI.gd
@@ -3,10 +3,7 @@ class_name GUI
export (bool) var show_debug = true
onready var debug_label = $TopRow/DebugLabel
-# Declare member variables here. Examples:
-# var a = 2
-# var b = "text"
-
+signal dialogue_next()
# Called when the node enters the scene tree for the first time.
func _ready():
@@ -18,3 +15,7 @@ func _process(_delta):
func set_debug_text(text: String):
debug_label.set_text(text)
+
+
+func _on_NextButton_pressed():
+ emit_signal("dialogue_next")