mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 09:03:52 +00:00
feat(editor): select all, recent zones, minimap selection highlights
- Ctrl+A selects all placed objects, context menu has Select All item - selectAll() added to ObjectPlacer, works with multi-select transforms - Recent Zones submenu in File menu (last 8 loaded zones, deduplicated) - Minimap: selected objects shown as white dots with gold ring outline vs yellow dots for unselected objects - Help panel updated with Ctrl+A and Ctrl+Shift+Click documentation
This commit is contained in:
parent
ddf97e9b8a
commit
533c218983
5 changed files with 49 additions and 3 deletions
|
|
@ -111,6 +111,15 @@ PlacedObject* ObjectPlacer::getSelected() {
|
|||
return &objects_[selectedIdx_];
|
||||
}
|
||||
|
||||
void ObjectPlacer::selectAll() {
|
||||
clearSelection();
|
||||
for (int i = 0; i < static_cast<int>(objects_.size()); i++) {
|
||||
objects_[i].selected = true;
|
||||
selectedIndices_.push_back(i);
|
||||
}
|
||||
if (!objects_.empty()) selectedIdx_ = 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