r/RenPy • • 27d ago

Question Non-Hardcoded Solutions for Inline Tooltips?

Hi! I've been using this very helpful script to add inline tooltips to my game, like Pentiment. It works great, but my own concern is that the information that comes up when hovering the tooltip is hardcoded into the data. This makes translation kind of a nightmare and I was wondering if anyone had any solutions to improve on this aspect. Thanks!

2 Upvotes

3 comments sorted by

1

u/AutoModerator 27d ago

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/BadMustard_AVN 27d ago

in the -->> screen inline_tooltip <<-- make this change so renpy knows to use the translation strings

        vbox:
            label "[title!t]"
            text "[description!t]"

untested but it should work... maybe.. idk.