23 lines
488 B
GDScript
23 lines
488 B
GDScript
extends TextureRect
|
|
|
|
|
|
func _ready() -> void:
|
|
hide()
|
|
|
|
|
|
#Change emotions following dialogue tags
|
|
func _change_emotion(dialogue_line) -> void:
|
|
|
|
var line_tag = dialogue_line.tags
|
|
print("Patient marker value: " + str(Patient.marker[0]))
|
|
if line_tag.is_empty() == false:
|
|
var new_emotion = line_tag[0]
|
|
texture = Patient.emotions[String(new_emotion)]
|
|
print("Patient emotion changed to ", new_emotion)
|
|
|
|
|
|
#Resets to initial state
|
|
func reset():
|
|
modulate = Patient.original_color
|
|
hide()
|