Page 1 of 1

[DONE!] Hypertext tooltips

Posted: Sat May 16, 2026 08:50
by Wuzzy
jp (kilbith) and I have been working on adding hypertext support to Luanti for a while now. This will allow games and mods to enhance tooltips with more eye-candy.

https://github.com/luanti-org/luanti/pull/14728

Above PR is basically finished, we’re basically waiting for reviews.

If this gets approved, the following features will be added:
  • Adds a new formspec element called hypertip which is like a tooltip, but for hypertext
  • Hypertext tooltips support all formatting options that normal hypertext boxes support as well, except clickable links: Bold, italic, underlined mono font, text size, embedded images and more
  • Dynamic and static hypertext tooltips: Dynamic ones move with your cursor, static ones are placed at fixed coordinates in the formspec
  • Customizable background image (with 9-slicing support)
  • Set the tooltip width in typographic em units
Example:
hypertip.jpg
hypertip.jpg (39.62 KiB) Viewed 304 times

Re: [DONE!] Hypertext tooltips

Posted: Wed Jul 01, 2026 23:13
by Wuzzy
Good news, everyone! Hypertext tooptips have just been merged!

https://github.com/luanti-org/luanti/pull/14728