
I want to build a Default template t show a list of clickable buttons on chat and those buttons would open Handouts.
I want colored and rectangle buttons if possible.
How could I do this?
Thanks!
I want to build a Default template t show a list of clickable buttons on chat and those buttons would open Handouts.
I want colored and rectangle buttons if possible.
How could I do this?
Thanks!
Hi, Guilherme!
Code for making buttons that open a handout:
Information on Chat Menus
Styling a button.
The basic trick can be found here. It's a little more advanced, though.
Thanks, Keithcurtis!
It worked, I'm able to link my hadouts on chat now, but is it possible to have that pink rectangular button instead a text line, it's barely visible.
This is not my macro, but it can explain what I mean. I want my buttons to be colored like those pink, but when I put a link on my button it turns into a text button.
Is it possible to make Handout Buttons like those?
Hmm. I know Roll20 treats url links differently from api links. You might be able to use that last tip link from the post I made to do some formatting, but honestly, I've never much messed with it. I tend to use the Stylus extension for things like that, which can do all kinds of formatting tricks, but only for the machine the style is installed on.
You might want to check out the ScriptCards API. I believe it allows for all kinds of formatting. Again, it's not an API I use, so I can't help much there.
Hi, Keithcurtis! I'm sorry if I delayed about giving you an answer!
With your help I did it! I got my rectangle button on a template! I'm just starting, but I'm excited!
I'm able to change its color and size. It opens my handouts when clicked and I can put as many buttons as I need.
This is my actual macro:
&{template:default}{{name=Consulta de Regras}}{{=[SUMÁRIO](http://journal.roll20.net/handout/-MQDC3nDOuJ8n3j9ICtr" style="color:white;font-size:20px;line-height:40px;background-color:green;padding:5px)}}
And this is my response on chat:
The HTML Styles in Chat link you sent me was very helpful.
Thanks again!