scaleGrid icon indicating copy to clipboard operation
scaleGrid copied to clipboard

Buttons should not be in the left scene controls

Open Azzurite opened this issue 5 years ago • 0 comments

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
});

Azzurite avatar Oct 12 '19 18:10 Azzurite