Debian Codegraph @

modules/gdscript/editor/script_templates/RichTextEffect/default.gd

raw
1 # meta-description: Base template for rich text effects
2
3 @tool
4 # Having a class name is handy for picking the effect in the Inspector.
5 class_name RichText_CLASS_
6 extends _BASE_
7
8
9 # To use this effect:
10 # - Enable BBCode on a RichTextLabel.
11 # - Register this effect on the label.
12 # - Use [_CLASS_SNAKE_CASE_ param=2.0]hello[/_CLASS_SNAKE_CASE_] in text.
13 var bbcode := "_CLASS_SNAKE_CASE_"
14
15
16 func _process_custom_fx(char_fx: CharFXTransform) -> bool:
17 var param: float = char_fx.env.get("param", 1.0)
18 return true