-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RichTextLabel: Fix missing function bindings for internal real-time fx #93412
base: master
Are you sure you want to change the base?
RichTextLabel: Fix missing function bindings for internal real-time fx #93412
Conversation
Should help users who want to use GDScript in conjunction with internal real time effects such as Tornado, Rainbow and Shake. Fixes godotengine#77120
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine, but docs probably should include info about function parameters (can be mostly copy-pasted from https://docs.godotengine.org/en/latest/tutorials/ui/bbcode_in_richtextlabel.html).
<param index="0" name="start_index" type="int" /> | ||
<param index="1" name="length" type="int" /> | ||
<description> | ||
Adds a [code skip-lint][fade][/code] tag to the tag stack. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adds a [code skip-lint][fade][/code] tag to the tag stack. | |
Adds a [code skip-lint][fade][/code] tag to the tag stack. |
Space at the end.
ClassDB::bind_method(D_METHOD("push_fade", "start_index", "length"), &RichTextLabel::push_fade); | ||
ClassDB::bind_method(D_METHOD("push_shake", "strength", "rate", "connected"), &RichTextLabel::push_shake); | ||
ClassDB::bind_method(D_METHOD("push_wave", "frequency", "amplitude", "connected"), &RichTextLabel::push_wave); | ||
ClassDB::bind_method(D_METHOD("push_tornado", "frequency", "radius", "connected"), &RichTextLabel::push_tornado); | ||
ClassDB::bind_method(D_METHOD("push_pulse", "color", "frequency", "ease"), &RichTextLabel::push_pulse); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick, but conceptually the lines before and after around about cells. I would move these push_
methods just after push_customfx
which is the generic one.
This should help users who want to use GDScript in conjunction with internal real time effects
wave
,tornado
,rainbow
,fade
,pulse
andshake
. Tested using a simple GDScript scene and seems to work without issue.Fixes #77120