Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

rich text field hyperlink

A topic by pointsizepress created 66 days ago Views: 150 Replies: 2
Viewing posts 1 to 3
(+1)

I have just started experimenting with Decker (v1.54), thinking to start with something simple I downloaded an ezine from https://github.com/1jss/awesome-decker?tab=readme-ov-file and converted the .html to a .deck file.

My unexpected problem should have been simple.... the template had some rich text fields as links and I wasted a whole evening trying to work out how that was done. The documentation says that this is possible (https://beyondloom.com/decker/decker.html) but does not tell you how.

The script for the text field says 'No existing script; populated by a template'. The documentation has some sketchy detail about templates but no information about where you can inspect them, or how you can edit them.

For buttons making a hyperlink is simple, I figured that out quickly enough but for rich text files - my question is how do you do it?

(+3)

Hi!

Essentially the way you make a hyperlink in Decker is selecting the text you want to be the link, and then using the Text -> Link... menu option, which then gives you a dialogue box that you can fill in either a URL or the name of a card that you want the link to go to. In order for the link to be clickable you will need to lock the text box from interaction.

No scripting required unless you want the link to do something more complicated than going to another card or URL - that's the situation where you'd want to override the default behaviour.

Hope this makes sense.

(+2)

Thanks Millie - knew I was missing something simple! until you select the text of your proposed link the text menu is deactivated.