trigger-segfault / OpenLRR

An open source re-implementation of LEGO Rock Raiders 🪨⛏
66 stars 5 forks source link

Show arrow when placing buildings to clearly indicate the resulting rotation #55

Closed trigger-segfault closed 2 years ago

trigger-segfault commented 2 years ago

Describe the issue When placing buildings like the Mining Laser or Geological Center, there isn't any indicator for what rotation they'll spawn in. It's not too hard to figure out if you're familiar with how the rotation works, but it would be more user-friendly to show an arrow so that it's easy to tell.

Outline of feature


Screenshot Example of placing a larger building with the arrow visible. OpenLRR_BuildingPlacementArrowPowerStation

Video Example of placing the Mining Laser and deciding on the building rotation.

https://user-images.githubusercontent.com/9752430/189546414-ea9e297d-9700-4980-b28f-db261d7bc06d.mp4

trigger-segfault commented 2 years ago

This has been implemented by 4122d0f57cb43c4866673143c445aad0f4dab9ba.

The final implementation went with a triangle over an arrow shape. The triangle also faces flush with the ground Z level instead of hovering at the highest Z value above the SelectPlace tile.

OpenLRR_BuildingPlacementArrowFinal