rickomax / psxprev

PSXPREV - Playstation (PSX) Files Previewer/Extractor
BSD 2-Clause "Simplified" License
200 stars 10 forks source link

Select triangles with Shift+Click #89

Closed trigger-segfault closed 1 year ago

trigger-segfault commented 1 year ago

Main changes

This implements issue #87.

Holding shift and clicking on a triangle will now select the triangle with a 2px white outline. Selecting anything else will unselect a selected triangle. Selected triangles show up in the property grid. Most Triangle properties have had the Browsable(false) attribute removed. Triangles now store their ParentEntity, which is assigned by the ModelEntity Triangles property setter. This is useful for the property grid to see what owns the triangle.

Preview of selected triangle ![image](https://github.com/rickomax/psxprev/assets/9752430/e4823ef0-88d2-4874-b42f-42a45b7ba10d)

Refactor changes