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

Rename the type parameter to node_type in Theme and Control #42008

Merged
merged 1 commit into from
Nov 16, 2020

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Sep 12, 2020

This makes it clearer that it expects a node type as a string (such as "Label") instead of a type like "TYPE_ARRAY". This is backwards-compatible since only the name of the parameter is changed, not its order.

3.2 version in #42009.

See godotengine/godot-proposals#1495 (comment).

@Calinou Calinou added this to the 4.0 milestone Sep 12, 2020
@Calinou Calinou marked this pull request as draft September 12, 2020 16:38
@Calinou Calinou force-pushed the theme-rename-node-type branch from 734bf9c to 42a6fdc Compare September 12, 2020 16:58
@Calinou Calinou marked this pull request as ready for review September 12, 2020 16:58
@Calinou Calinou requested a review from a team as a code owner September 12, 2020 16:58
@Calinou Calinou changed the title Rename the type parameter to node_type in the Theme class Rename the type parameter to node_type in Theme and Control Sep 12, 2020
@Calinou Calinou force-pushed the theme-rename-node-type branch from 42a6fdc to 568b35d Compare September 12, 2020 16:58
@YuriSizov
Copy link
Contributor

Please note that in case of get_type_list this argument doesn't make sense and should be removed (#37759).

@akien-mga
Copy link
Member

Needs a rebase.

This makes it clearer that it expects a node type as a string
(such as "Label") instead of a type like "TYPE_ARRAY".
This is backwards-compatible since only the name of the parameter
is changed, not its order.
@Calinou Calinou force-pushed the theme-rename-node-type branch from 568b35d to c3b246e Compare October 27, 2020 13:59
@akien-mga akien-mga merged commit fc70f98 into godotengine:master Nov 16, 2020
@akien-mga
Copy link
Member

Thanks!

@Calinou Calinou deleted the theme-rename-node-type branch March 31, 2021 09:46
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.

3 participants