feat(editor): Import Content Pack button for loading shared WCP archives

This commit is contained in:
Kelsi 2026-05-05 10:06:57 -07:00
parent c05c15f6c9
commit a2b69e8e09

View file

@ -7,6 +7,7 @@
#include "npc_presets.hpp"
#include "quest_editor.hpp"
#include "pipeline/custom_zone_discovery.hpp"
#include "content_pack.hpp"
#include "pipeline/wowee_terrain_loader.hpp"
#include <filesystem>
#include "asset_browser.hpp"
@ -241,6 +242,12 @@ void EditorUI::renderMenuBar(EditorApp& app) {
}
ImGui::EndMenu();
}
if (ImGui::MenuItem("Import Content Pack (.wcp)")) {
static char wcpImportPath[256] = "content.wcp";
// Simple import — unpack to custom_zones/
editor::ContentPacker::unpackZone(wcpImportPath, "custom_zones");
app.showToast("Content pack imported to custom_zones/");
}
if (ImGui::BeginMenu("Import Heightmap", app.hasTerrainLoaded())) {
static char hmPath[256] = "heightmap.raw";
static float hmScale = 200.0f;