This commit is contained in:
Maurane
2026-08-16 01:06:53 +02:00
parent d0cdec4a6a
commit 59e9cb30a5
362 changed files with 4139 additions and 4487 deletions
+21
View File
@@ -0,0 +1,21 @@
extends Control
@onready var screen = $Margin/ConsoleScreen
@onready var next_patient_button = $Margin/NextPatient/CallNextPatient
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
Globals.console_message.connect(self.display)
reset()
#Displays a message on the console screen
func display(message):
var text = message.replace("\\n", "\n") #Replaces litteral backslashes by actual newlines (necessary because of Dialogue Manager)
screen.text = text
screen.show()
func reset(): #Resets to initial state
for node in [next_patient_button, screen]:
node.hide()