atomdmac / scaleGrid

Module for FoundryVTT that scales the grid.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Latest Version Foundry Version Forge Installs GitHub

Grid Scaler

How to Use

Once the plugin is loaded a new wrench icon will appear below the main tool selection. Click on the Grid Scaler icon to get to the tools.
tool-icon

Draw Square/Hex

draw-icon
This will let you draw a square or hex on the map then have the grid size set to match it. No offset is applied with this and should be applied manually.

draw-square
draw-hex2

Draw 3x3

3x3-icon
Draw a 3x3 grid square on the map then have the grid size set to match it. No offset is applied with this and should be applied manually.

draw-3x3

Set X Offset

x-offset-icon
When this is selected it will let you move the grid along the X plane. Clicking the button then clicking on a vertical line in one of your grid squares will adjust the grid to line up with that point.

Set Y Offset

y-offset-icon
When this is selected it will let you move the grid along the Y plane. Clicking the button then clicking on a horizontal line in one of your grid squares will adjust the grid to line up with that point.

Move/Scale Grid

move-scale-grid
This allows you to manually set the grid size by entering the number of horizontal grid spaces across the map. Works best with maps where the grid covers the image entirely.

move-scale-grid

Enter Grid Size

grid-siz-dialog-icon
This allows you to manually set the grid size by entering the number of horizontal grid spaces across the map. Works best with maps where the grid covers the image entirely.

Toggle Grid Preview

toggle-grid-icon
Changes the grid settings temporarily to make it fully opaque and pink. This is helpful when you've set your grid to be transparent and just want to quickly make it visible without having to go into the configuration menu.

Reset Grid

reset-grid-icon
This will set the grid to 100 pixels square with 0 X/Y offset. It also changes the grid color to pink to make it easier to see.

To Do

  • Auto-calculate the offset after using the hex draw tool. Could possibly get rid of the horizontal and vertical adjustment buttons then.
  • Add button to set to the current size and position of the map. Not exactly grid related, but I do this all the time and it sucks to have to go into the map config to do it.

Notes and Mentions

This module was first created by UberV. I'm taking it over to get some bugs fixed and add new features.

About

Module for FoundryVTT that scales the grid.

License:MIT License


Languages

Language:JavaScript 90.1%Language:HTML 7.7%Language:CSS 2.2%