scaleGrid
scaleGrid copied to clipboard
Buttons should not be in the left scene controls
You only need this addon once per scene. Then you never need it anymore. The buttons in the scene controls just clutter the interface after the grid is correct.
The buttons should instead be in the scene settings.
You can hook into renderSceneSheet
and then place your buttons at an appropriate place.
Sample code:
Hooks.on('renderSceneSheet', (sceneSheet, html) => {
// insert buttons into html
// you can call sceneSheet.minimize() to make the config window small
// after a grid adjustment button is clicked
});