Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

UI events?

I'm interested in writing a small script to enlarge an object (card in this case) when it is hovered over with the cursor. However, I have not been able to find any UI events such as hover, click, etc. Am I missing these events in the API docs? Are they non-existent for a reason? Is there a different pattern for achieving this kind of implementation? Thanks in advance for any help. Spot
there's nothing to "automatically" do that, however op = { ...     selected: [         {             _type: "graphic",             _id: "-Iva56adfadf"         }     ] } allows you to create a script that affects selected tokens. You could in theory click a card and type "!enlarge" and it'll blow it up, then "!shink" to set its size back to default? also, this only works on clicked/selected tokens, there's no form of input for hovered objects, as the API does not give direct access to a users IO.
This is unfortunate, and makes using Roll20 for CCGs very difficult/impossible. A 'select' enlarge may be workable, but still significantly inconvenient for fitting enough cards on the table, and actually being able to read them. Again, unfortunate that UI events are not supported. We may just find another solution (or roll our own). Thanks for the help.
If it's for readibility you could make the image fairly large, in the area of 140x210 pixels and then enlarge your game board to accomidate it. this would allow players to physically zoom into the board (either by the magnification tool, or using ALT+scroll wheel) to view the cards up close in more depth. you can edit through the actual deck's settings for a default size for the cards to be placed on the board. This too should be set to an equally large size.