Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
RichTextEffect
Eredita: Resource < RefCounted < Object
Un effetto personalizzato per un RichTextLabel.
Descrizione
Un effetto personalizzato per un RichTextLabel, che può essere caricato nell'Ispettore di un RichTextLabel o attraverso RichTextLabel.install_effect().
Nota: Affinché un RichTextEffect sia utilizzabile, è necessario definire un tag BBCode come variabile membro con il nome bbcode nello script.
# Sarà possibile usare il RichTextEffect in questo modo: `[example]Some text[/example]`
var bbcode = "example"
// Sarà possibile usare il RichTextEffect in questo modo: `[example]Some text[/example]`
string bbcode = "example";
Nota: Non appena un RichTextLabel contiene almeno un RichTextEffect, elaborerà continuamente l'effetto a meno che il progetto non sia in pausa. Ciò potrebbe avere un impatto negativo sulla durata della batteria.
Tutorial
Metodi
_process_custom_fx(char_fx: CharFXTransform) virtual const |
Descrizioni dei metodi
bool _process_custom_fx(char_fx: CharFXTransform) virtual const 🔗
Sovrascrivi questo metodo per modificare le proprietà in char_fx. Il metodo deve restituire true se il carattere può essere trasformato correttamente. Se il metodo restituisce false, ignorerà la trasformazione per evitare di visualizzare testo incorretto.