Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Eoin-ONeill-Yokai
Copy link
Contributor

This should help users who want to use GDScript in conjunction with internal real time effects wave, tornado, rainbow, fade, pulse and shake. Tested using a simple GDScript scene and seems to work without issue.

Fixes #77120

Should help users who want to use GDScript in conjunction with internal
real time effects such as Tornado, Rainbow and Shake.

Fixes godotengine#77120
@Eoin-ONeill-Yokai Eoin-ONeill-Yokai requested a review from a team as a code owner June 20, 2024 22:40
@Calinou Calinou added this to the 4.3 milestone Jun 20, 2024
@Eoin-ONeill-Yokai Eoin-ONeill-Yokai requested a review from a team as a code owner June 21, 2024 04:32
Copy link
Member

@bruvzg bruvzg left a 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Comment on lines +5923 to +5927
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);
Copy link
Member

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.

@akien-mga akien-mga modified the milestones: 4.3, 4.4 Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RichTextLabel's built-in effects are not exposed as push_() functions
4 participants