Log in

View Full Version : Type of grid



Kelrugem
June 9th, 2020, 17:42
Hi :)

Is there some way to check in the grid which type of the grid is toggled? (especially whether it is hex or not)

I have some problem with the rotation of tokens when using my height label extension on a hex grid (funnily only for rotations in one direction); that is due to different number of adjacent places compared to square grids :)

I realized that the reach underlay in FGU changes to a circle underlay when switching to a hex grid, thence, there is seemingly somehow such a check in the code :) Would be happy about any pointer to some direction :)

Best wishes,

Kelrugem

Moon Wizard
June 10th, 2020, 00:34
Have you already tried using the imagecontrol API functions, such as getGridType, getGridSize, getGridOffset?

Regards,
JPG

Kelrugem
June 10th, 2020, 08:56
Have you already tried using the imagecontrol API functions, such as getGridType, getGridSize, getGridOffset?

Regards,
JPG

aah, I didn't know of these, thanks a lot :) I am going to try them out :)