zen-mod / ZEN

Zeus enhancement mod for Arma 3
https://zen-mod.github.io/ZEN
GNU General Public License v3.0
108 stars 47 forks source link

Add Building Markers #704

Closed ampersand38 closed 1 year ago

ampersand38 commented 1 year ago

When merged this pull request will:

Kexanone commented 1 year ago

As I mentioned on Discord, I don't really see a use case for enabling markers for individual buildings. I think it makes more sense to have a global setting for it.

mharis001 commented 1 year ago

Do the markers update (position) if the building is moved by Zeus?

ampersand38 commented 1 year ago

Not currently. That would definitely be needed for the setting, but wasn't in the workflow I had in mind. (Now it does!)

mharis001 commented 1 year ago

The code for this feature is spread out over 3 components. Let's consolidate all of this functionality in a new component for better maintainability - maybe building_markers.

ampersand38 commented 1 year ago

Having an issue where placement preview is making the marker spawn at [-1000, -1000], and then CuratorObjectEdited is not being triggered.

mharis001 commented 1 year ago

I did some minor cleanup and fixes. Building markers were being created for all objects when the placement preview was enabled. Also, changed the marker size calculation to take the difference between the two bounding box extremes.

@ampersand38 Please look my changes over and merge when ready.