From adfa1d7086c337ef8cf13669934a20040aabb0b9 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 5 May 2026 10:40:15 -0700 Subject: [PATCH] feat(editor): export toast shows open format completeness score (X/5) --- tools/editor/editor_app.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/editor/editor_app.cpp b/tools/editor/editor_app.cpp index ba822521..9ed1c0e4 100644 --- a/tools/editor/editor_app.cpp +++ b/tools/editor/editor_app.cpp @@ -810,8 +810,13 @@ void EditorApp::exportZone(const std::string& outputDir) { if (npcSpawner_.spawnCount() > 0) fileCount++; if (questEditor_.questCount() > 0) fileCount++; - showToast("Exported " + std::to_string(fileCount) + " files to " + base); - LOG_INFO("Zone exported to: ", base, " (", fileCount, " files)"); + // Validate open format completeness + auto validation = ContentPacker::validateZone(base); + int score = validation.openFormatScore(); + showToast("Exported " + std::to_string(fileCount) + " files (" + + std::to_string(score) + "/5 open format)"); + LOG_INFO("Zone exported to: ", base, " (", fileCount, " files, open score: ", + score, "/5 — ", validation.summary(), ")"); } void EditorApp::exportContentPack(const std::string& destPath) {