fix(editor): version string, NPC ID reset, author attribution + UX

Bug fixes:
- Fix README.txt version from v0.8.0 to v1.0.0
- Reset NPC idCounter_ on loadFromFile to prevent ID collisions
- WCP content pack uses project author/description if loaded instead
  of hardcoded "Kelsi Davis"

New features:
- Select by Type: context menu items for "Select All M2 Models" and
  "Select All WMO Buildings" for batch type-based selection
- selectByType(PlaceableType) added to ObjectPlacer
- Export summary toast now shows object/NPC/quest counts alongside
  file count and open format score (5s duration)
This commit is contained in:
Kelsi 2026-05-05 14:05:22 -07:00
parent 28d63addc4
commit 10a63f0581
5 changed files with 31 additions and 5 deletions

View file

@ -2076,6 +2076,14 @@ void EditorUI::renderContextMenu(EditorApp& app) {
if (ImGui::MenuItem("Select All", "Ctrl+A")) {
app.getObjectPlacer().selectAll();
}
if (ImGui::MenuItem("Select All M2 Models")) {
app.getObjectPlacer().selectByType(PlaceableType::M2);
app.showToast("Selected " + std::to_string(app.getObjectPlacer().selectionCount()) + " M2 models");
}
if (ImGui::MenuItem("Select All WMO Buildings")) {
app.getObjectPlacer().selectByType(PlaceableType::WMO);
app.showToast("Selected " + std::to_string(app.getObjectPlacer().selectionCount()) + " WMO buildings");
}
if (ImGui::MenuItem("Deselect")) {
app.getObjectPlacer().clearSelection();
app.getNpcSpawner().clearSelection();