Add dialogue portrait slots

This commit is contained in:
2026-06-18 03:38:45 +09:00
parent bdd38104f4
commit 2166ea51ef
7 changed files with 97 additions and 11 deletions

View File

@@ -2487,14 +2487,15 @@ func _normalize_dialogue_line(line) -> Dictionary:
var text := str(line)
if text.is_empty():
return {}
return {"speaker": "", "text": text}
return {"speaker": "", "text": text, "portrait": ""}
if typeof(line) == TYPE_DICTIONARY:
var text := str(line.get("text", ""))
if text.is_empty():
return {}
return {
"speaker": str(line.get("speaker", "")),
"text": text
"text": text,
"portrait": str(line.get("portrait", ""))
}
return {}