Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to select multiple entities in the Entity Editor #37

Open
lodyb opened this issue Jun 21, 2024 · 1 comment
Open

Ability to select multiple entities in the Entity Editor #37

lodyb opened this issue Jun 21, 2024 · 1 comment

Comments

@lodyb
Copy link

lodyb commented Jun 21, 2024

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:

  • A button to select every entity in the current filter
  • A button to delete entities in the current selection
  • Display the values from all selected entities as one
    • If every entity in selection has the same value, display that value
    • If there are different values in the selection for this key, display (different)
      • This is how Hammer handles the same behaviour so it will make sense to mappers

Arc_AdFED6AV7A

image

@tsa96
Copy link
Member

tsa96 commented Jun 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants