
Hi folks, I am working on a feature to allow players and GM to control various characteristics of the map they are on. I'm currently using a roll template where the buttons launch map hex related API commands from a script that I developed after searching the forum as to whether I could have players affect their grid properties and finding this from DriftingNitro with help from The Aaron.
<a href="https://app.roll20.net/forum/post/8318133/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/8318133/slug%7D</a> Here's what I have now and all works well as the GM and using a separate player account in a private window. "Current Configuration" has been clicked and the chat results show below it. The other API commands for gridlabels true/false, showgrid true/false, and set to defaults (my defaults) work fine. Two Questions concerning the API: Can the colour picker normally found in various dialogs be invoked and the colour code be retrieved so the API can apply it to gridcolor? Can an input box or slider of some sort be generated to take a number and apply it to grid_opacity? Finally, is there some other way to give the player buttons in the chat text window besides the roll template? This one is not an urgent issue and at the moment I am using a token menu item to call the macro for the roll template. Thanks in advance for any guidance, -- Tim