17 lines
378 B
GDScript
17 lines
378 B
GDScript
extends RichTextLabel
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
Globals.terminate_display.connect(self._on_terminate_display)
|
|
text = Globals.colorize("TERMINATE", "web_gray")
|
|
|
|
|
|
func _on_terminate_display(message:String):
|
|
text = message
|
|
|
|
|
|
#Resets to initial state
|
|
func reset():
|
|
text = Globals.colorize("TERMINATE", "web_gray")
|