[DONE!] Hypertext tooltips

For people working on the C++ code.
Post Reply
User avatar
Wuzzy
Member
Posts: 5118
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

[DONE!] Hypertext tooltips

by Wuzzy » Post

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 237 times

User avatar
Wuzzy
Member
Posts: 5118
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: [DONE!] Hypertext tooltips

by Wuzzy » Post

Good news, everyone! Hypertext tooptips have just been merged!

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

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests