summaryrefslogtreecommitdiffstats
path: root/scripts/GUI.gd
blob: de1106fd702f7d6c62f82656f8070deba2553397 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
extends MarginContainer
class_name GUI
export (bool) var show_debug = true
onready var debug_label = $TopRow/DebugLabel

signal dialogue_next()

# Called when the node enters the scene tree for the first time.
func _ready():
	debug_label.set_visible(show_debug)

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta):
	pass

func set_debug_text(text: String):
	debug_label.set_text(text)


func _on_NextButton_pressed():
	emit_signal("dialogue_next")