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
Hereda: Resource < RefCounted < Object
Un efecto personalizado para un RichTextLabel.
Descripción
Un efecto personalizado para RichTextLabel, que puede ser cargado en el inspector de RichTextLabel o usando RichTextLabel.install_effect().
Nota: Para que un RichTextEffect sea utilizable, una etiqueta BBCode debe ser definida como una variable de miembro llamada bbcode en el script.
# El RichTextEffect será utilizable así: `[example]Algún texto[/example]`
var bbcode = "example"
// El RichTextEffect será utilizable así: `[example]Algún texto[/example]`
string bbcode = "example";
Nota: Tan pronto como un RichTextLabel contenga al menos un RichTextEffect, procesará continuamente el efecto a menos que el proyecto se pause. Esto puede afectar negativamente la duración de la batería.
Tutoriales
Métodos
_process_custom_fx(char_fx: CharFXTransform) virtual const |
Descripciones de Métodos
bool _process_custom_fx(char_fx: CharFXTransform) virtual const 🔗
Sobrescribe este método para modificar las propiedades en char_fx. El método debe devolver true si el carácter pudo ser transformado exitosamente. Si el método devuelve false, se saltará la transformación para evitar mostrar texto dañado.