Use images as choice options
Hi all! Is this a good place to ask for Inky support?
- I'm looking for a way to use images as choice options, instead of text. Is this possible?
- And also the ability to complement text choices with an image above (or below). So that both together are the choice (and clickable).
I'm creating an interactive text using inky, just for export to the web. So I'm not using Unity, just css classes using the #CLASS: tag
I figured out how I can add images to text in css using the pseudo class :before. But that would mean creating a different class for each different picture.
What would be great as well is the ability to add a css class to an image using tags. Like this:
# IMAGE:image.png # CLASS:imageclass
The discord might be the best place to ask this sort of question.
But to answer, you would probably have to insert your own special code into the JavaScript parser of choices, and maybe use something easy to parse that wouldn't be parsed normally by ink like ((icon:blah.jpg)) and add the image element and choice however you'd like them to be presented.