Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved grid alignment of pregame building previews (#2772)
* Fixed an issue with non-square buildings being slightly offset with the pregame build queue *Added an x/z offset based on the absolute difference in height/width to non-square buildings *Added a few readability tweaks to a few functions Test Steps *Ensure pregame build queue behaves in expected manner *Ensure incorrect offset for non-square buildings is no longer present (examples: Arm Air Lab/Arm Vehicle Bay) * Fixed an issue with non-square buildings being slightly offset with the pregame build queue *Added an x/z offset based on the absolute difference in height/width to non-square buildings *Added a few readability tweaks to a few functions Test Steps *Ensure pregame build queue behaves in expected manner *Ensure incorrect offset for non-square buildings is no longer present (examples: Arm Air Lab/Arm Vehicle Bay) * Removed some of the readability tweaks to keep the script lightweight * Removed the offset values - wasn't needed, the Spring API handles this with an optional parameter. * Making it so the arrow correctly follows with mouse movement instead of being offset. --------- Co-authored-by: Kiirar <[email protected]>
- Loading branch information