Godot Version
4.7.1, Arch Linux
Question
What the mechanic is:
The player opens up a note of unknown origin and unknown language. The player collects clues and words. As they do so, the words on these notes “light up” and become buttons which they can click on in order to view the translation independent of any inflection or other grammatical changes.
What I have so far:
I have a dictionary of words for translating, which gives each word a unique id that can be accessed from anywhere. Each word has the base form and translation and the part of speech.
What I want it to look like:
I would like the learned words to show up as buttons (or something similar), the text being the word or phrase, background color-coded to the part of speech, and popping up with a thing that gives the base form and translation.
What I’ve tried:
RichTextLabel [url] tag. Gives me the meta options to pop a tooltip, but it doesn’t change the background of the word if the player has discovered it.
Custom RichTextEffect. Can’t figure out how to access existing RichTextEffects like [url] and [bgcolor].
Custom Button node. Looks and functions like I want it to, but can’t figure out how to assign the words of the notes to the buttons in an efficient and performance-friendly manner. There are dozens of these notes with hundreds of words.
Ideas or examples would be welcome.
Thank you ![]()

