Code reorganizing

This commit is contained in:
Maurane
2026-02-24 18:01:23 +01:00
parent 450d372775
commit a9698155fa
52 changed files with 1458 additions and 679 deletions
+18
View File
@@ -0,0 +1,18 @@
extends TextureRect
func _ready() -> void:
#Hiding
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)