Enhanced grid display and snapping
Swanarog opened this issue ยท 4 comments
The current implementation of the alignment grid feels very choppy when changing grid density. It also does not display the grid with a truly square grid. Individual squares on the grid are always rectangles.
I've rewritten the code to correct both of those issues, and I'm going to include a short video of the grid density being changed to show how smooth the grid display appears now. If you like what you see, I'll make a fork and post it for you.
(video in next comment)
https://giphy.com/gifs/pWdYpbuIvPkW9Xw2uo
I'm not sure if this clearly shows what I'm trying to convey, hopefully you can see.
Proposed code changes:
https://github.com/Swanarog/Dominos
Tuller/FlyPaper-2.0@master...Swanarog:patch-1
I've updated my previous comment with a new link that includes all necessary code changes to go with the better grid display
I've cherry picked the grid commits into the main branch and made a few adjustments. The main thing I've done differently is use GetScreenHeight as the factor for determining scale instead of width. That part is more consistent across various multi monitor and aspect ratios, I think. (I use a 21:9 monitor, for example).