momentum-mod / lumper

BSP lump editor and review tool
MIT License
20 stars 13 forks source link

Ability to select multiple entities in the Entity Editor #37

Open lodyb opened 3 weeks ago

lodyb commented 3 weeks ago

When selecting entities it would be good if multiple can be worked on at once

This could be done using shift select over a range (hold shift, click first, click last.) In windows it is also common to allow ctrl+click on extra items to add to the array of selected items.

Some ideas:

Arc_AdFED6AV7A

image

tsa96 commented 3 weeks ago

This should be nice to do, we just create a temporary EntityViewModel when multiple are selected, without adding to the underlying cache in EntityLumpViewModel. Populate with properties shared by the selected entities, with all the behaviour lody suggested and display on the entity editor page, then observe on changes to their values and modify the viewmodels of the selected entities. HOPEFULLY, if I've structured everything well, we just need to add new stuff to the entity editor page, and shared viewmodels won't need changing at all.