How to change the style of BBCode hints in Godot

Godot Version

v4.2.1.stable.official [b09f793f5]


Is there a simple way to change the way Godot shows that a word in your rich text has a hint. The default is kind of subdued and I want it to be more obvious that my players can hover over a word and get a hint about it’s meaning. I looked in the documentation but couldn’t find anything on this topic.

I’ve tried loading a rich text effect with this script but It doesn’t work for some reason. I have several tags formatted in the same way and they work fine but hint is a more complex tag and is probably handled differently than something like [player][/player] not sure what else to try… :frowning:

extends RichTextEffect
class_name HintTextColor

var bbcode := "hint"

func _process_custom_fx( char_fx : CharFXTransform ) -> bool :
	var color = Color.WHITE
	char_fx.color = color
	return true