scaleGrid icon indicating copy to clipboard operation
scaleGrid copied to clipboard

Improvement: Allow for arbitrary number of rows/columns in grid square

Open trev33b opened this issue 4 years ago • 1 comments

I was working on a map that happened to be drawn using 10' squares, but I wanted to subdivide that into 5' squares.

Neither the "Set Grid Square Size" or "Set GridSquare with a 3x3 Square" tools really help in that case because you have to eyeball/guess the right size which takes a lot of trial and error. I ended up going back to the built-in Foundry tool.

To make this better in your toolset, it would be nice to be able to use the "Set GridSquare with a 3x3 Square" but instead of a 3x3 grid allow the user to enter the number of rows/columns (i.e. n x n, where n is inputed by the user). If you want to avoid creating any UI elements to get input from the user, you could just listen to key events to get the number.

Something like:

  1. Use clicks on the Set GridSquare with n x n Square" tool button
  2. Listen for keyboard events, specifically numbers and backspace
  3. Render the number on the screen so the user can see what they are typing. (Perhaps similar to how you render the final grid size as you are dragging)
  4. When a mouse drag event occurs, lock in the user-provided number and stop listening to keyboard events.

If I had this in my use case, I might have done 6x6 or perhaps event bigger like 20x20 because the map I was using was worse because the square were different sizes and using a large grid could help calculate a better average size.

trev33b avatar Aug 27 '20 05:08 trev33b

As a follow-up suggestion, you could make the default count be "1", which means you could merge the "Set Grid Square Size" and "Set GridSquare with a 3x3 Square" tools.

trev33b avatar Aug 27 '20 06:08 trev33b