mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 09:03:52 +00:00
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:
parent
28d63addc4
commit
10a63f0581
5 changed files with 31 additions and 5 deletions
|
|
@ -120,6 +120,17 @@ void ObjectPlacer::selectAll() {
|
|||
if (!objects_.empty()) selectedIdx_ = 0;
|
||||
}
|
||||
|
||||
void ObjectPlacer::selectByType(PlaceableType type) {
|
||||
clearSelection();
|
||||
for (int i = 0; i < static_cast<int>(objects_.size()); i++) {
|
||||
if (objects_[i].type == type) {
|
||||
objects_[i].selected = true;
|
||||
selectedIndices_.push_back(i);
|
||||
}
|
||||
}
|
||||
if (!selectedIndices_.empty()) selectedIdx_ = selectedIndices_[0];
|
||||
}
|
||||
|
||||
void ObjectPlacer::moveSelected(const glm::vec3& delta) {
|
||||
if (selectedIndices_.size() > 1) {
|
||||
for (int idx : selectedIndices_) objects_[idx].position += delta;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue