This is an awesome alternative to the older "lexicon" style code by Remix. I was psyched to see how easily it handles alternate text strings. I'm using variables for character names and it not only reads the variables correctly, but lets me use full character names with spaces and color them individually. I spent several hours trying to wrangle the old code (much respect to Remix and the folks in the Discord who've upgraded it) to make any of that work, and this did it out of the box. Thank you so much for this!
Simple and clean. Inline tooltip is always in demand, and I think this is a good place to refer people to get started. (They can make it more robust later if they want).
this is really useful & simple to understand! thank you for sharing.
(one thing that might come up is if you use keyboard navigation like arrow keys instead of mouse to hover, the tooltip may show in an odd place/cut off the screen since it is currently based only on mouse pos, but this can easily be edited on the user side by either making it display in a fixed position or ensuring the position is never below/above a certain amount)
← Return to asset pack
Comments
Log in with itch.io to leave a comment.
This is an awesome alternative to the older "lexicon" style code by Remix. I was psyched to see how easily it handles alternate text strings. I'm using variables for character names and it not only reads the variables correctly, but lets me use full character names with spaces and color them individually. I spent several hours trying to wrangle the old code (much respect to Remix and the folks in the Discord who've upgraded it) to make any of that work, and this did it out of the box. Thank you so much for this!
Simple and clean. Inline tooltip is always in demand, and I think this is a good place to refer people to get started. (They can make it more robust later if they want).
no matter what i try i cannot seem to get this to work
[code]
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/inline_tooltip.rpy", line 7, in script
define inline_tooltip_list = [
File "game/inline_tooltip.rpy", line 8, in <module>
inline_tooltip_data("night", [_("Night"), "Night", "Night", _("night")], _("The Elves are a pointy eared people with a lot of rizz.")),
TypeError: __init__() missing 1 required positional argument: 'description'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/inline_tooltip.rpy", line 7, in script
define inline_tooltip_list = [
return eval(bytecode, globals, locals)
File "game/inline_tooltip.rpy", line 8, in <module>
inline_tooltip_data("night", [_("Night"), "Night", "Night", _("night")], _("The Elves are a pointy eared people with a lot of rizz.")),
TypeError: __init__() missing 1 required positional argument: 'description'
Windows-10-10.0.22631 AMD64
Ren'Py 8.3.4.24120703
Test Game 1.0
Sat Feb 15 23:06:49 2025
[/code]
The data requires 4 arguments, not 3!
The second last should be the title, and the last the description so it should probably look like:
This is great, amazing work!!! <3
Thank you so much, I wouldn't have even thought to make it if I hadn't seen your awesome tool submissions!
this is really useful & simple to understand! thank you for sharing.
(one thing that might come up is if you use keyboard navigation like arrow keys instead of mouse to hover, the tooltip may show in an odd place/cut off the screen since it is currently based only on mouse pos, but this can easily be edited on the user side by either making it display in a fixed position or ensuring the position is never below/above a certain amount)
Oh gosh, fantastic point! I'll look into trying to account for that next time I update this!