From 425c4b277ff6be20f69f860d10cc69253b2b2d50 Mon Sep 17 00:00:00 2001 From: bonnibel Date: Mon, 23 Dec 2024 13:05:41 -0800 Subject: [PATCH] Even more diagnostics for dialogues. --- src/Murder.Editor/CustomEditors/CharacterEditor.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Murder.Editor/CustomEditors/CharacterEditor.cs b/src/Murder.Editor/CustomEditors/CharacterEditor.cs index 1a4eff20..b507bf4e 100644 --- a/src/Murder.Editor/CustomEditors/CharacterEditor.cs +++ b/src/Murder.Editor/CustomEditors/CharacterEditor.cs @@ -294,6 +294,20 @@ public override bool RunDiagnostics() } } + bool hasAllDataInformation = true; + foreach ((DialogueId d, LineInfo info) in _script.Data) + { + if (info.Portrait is null && info.Event is null && info.Component is null) + { + hasAllDataInformation = false; + } + } + + if (_script.Data.Count == 0 || !hasAllDataInformation) + { + GameLogger.Warning($"There are no metadata information for {_script.Name}. Is this expected?"); + } + return !foundIssue; } }