From 5adb6cb364ef5d66e947d0ff6304f1ebfd2d6dd6 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 5 May 2026 10:11:50 -0700 Subject: [PATCH] feat(editor): export toast shows file count for better feedback --- tools/editor/editor_app.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tools/editor/editor_app.cpp b/tools/editor/editor_app.cpp index c8cfeca7..f7fa58f3 100644 --- a/tools/editor/editor_app.cpp +++ b/tools/editor/editor_app.cpp @@ -765,8 +765,18 @@ void EditorApp::exportZone(const std::string& outputDir) { manifest.save(base + "/zone.json"); lastSavePath_ = outputDir; - showToast("Zone exported to " + base); - LOG_INFO("Zone exported to: ", base); + + // Count exported files + int fileCount = 2; // ADT + WDT always + fileCount += 2; // WOT + WHM always + fileCount += 1; // zone.json always + fileCount += 1; // README always + if (objectPlacer_.objectCount() > 0) fileCount++; + 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)"); } void EditorApp::exportContentPack(const std::string& destPath) {