-
-
Notifications
You must be signed in to change notification settings - Fork 23.1k
Rename Label & RichTextLabel.percent_visible
to visible_ratio
#64665
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
Conversation
3e89839
to
ca1da94
Compare
ca1da94
to
91f47d2
Compare
Also updates the documentation of both `visible_characters` and `visible_ratio` to, better describe what they do and improve consistency between the two Classes.
91f47d2
to
64bd36e
Compare
For the record there's also
It could maybe be renamed too for consistency, though I don't know if Otherwise this PR seems fine as is. |
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.
Looks good for the Label and RichTextLabel changes.
Thanks! |
Most confusingly, that property is not the visible percentage, it's actually a boolean that when set to true, displays the completion percentage at the center of the ProgressBar. |
Oh ok, then maybe it could be renamed to |
Sounds pretty good to me, coming soon! |
Closes godotengine/godot-proposals#4978.
For Label & RichTextLabel:
percent_visible
->visible_ratio
This way its meaning is much clearer, and now the property can more tidily be organised with the similar

visible_characters
.Also updates the Documentation of both

visible_characters
andvisible_ratio
considerably, to better describe what they do and improve consistency between the two Classes.