mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 00:53:52 +00:00
feat(editor): Import Content Pack button for loading shared WCP archives
This commit is contained in:
parent
c05c15f6c9
commit
a2b69e8e09
1 changed files with 7 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
#include "npc_presets.hpp"
|
#include "npc_presets.hpp"
|
||||||
#include "quest_editor.hpp"
|
#include "quest_editor.hpp"
|
||||||
#include "pipeline/custom_zone_discovery.hpp"
|
#include "pipeline/custom_zone_discovery.hpp"
|
||||||
|
#include "content_pack.hpp"
|
||||||
#include "pipeline/wowee_terrain_loader.hpp"
|
#include "pipeline/wowee_terrain_loader.hpp"
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include "asset_browser.hpp"
|
#include "asset_browser.hpp"
|
||||||
|
|
@ -241,6 +242,12 @@ void EditorUI::renderMenuBar(EditorApp& app) {
|
||||||
}
|
}
|
||||||
ImGui::EndMenu();
|
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())) {
|
if (ImGui::BeginMenu("Import Heightmap", app.hasTerrainLoaded())) {
|
||||||
static char hmPath[256] = "heightmap.raw";
|
static char hmPath[256] = "heightmap.raw";
|
||||||
static float hmScale = 200.0f;
|
static float hmScale = 200.0f;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue