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

Fix outdated function names in GUI skinning example code #10368

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

Takapapatapaka
Copy link
Contributor

Changed the function to override theme font color from "add_color_override" to "add_theme_color_override", as the previous version is not recognized by my 4.3 Godot Editor.

Judging by the documentation archives, it seems that "add_color_override" was the version used in Godot 3.

From Control's 4.3 documentation, it seems C# functions have also been updated to include Theme in their name. It would make sense, so I updated it too, but I'm not 100% sure it actually works this way.

Changed the function to override theme font color from "add_color_override" to "add_theme_color_override", as the previous version is not recognized by my 4.3 Godot Editor. 

Judging by the documentation archives, it seems that "add_color_override" was the version used in Godot 3.

From Control's 4.3 documentation, it seems C# functions have also been updated to include Theme in their name. It would make sense, so I updated it too, but I'm not 100% sure it actually works this way.
Copy link
Contributor

@tetrapod00 tetrapod00 left a comment

Choose a reason for hiding this comment

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

This was indeed changed in 4.x.
The C# function names are correct.

@tetrapod00 tetrapod00 added bug area:manual Issues and PRs related to the Manual/Tutorials section of the documentation topic:gui content:example code Issues and PRs involving code examples cherrypick:4.3 labels Dec 4, 2024
@tetrapod00 tetrapod00 changed the title Update functions names in example code to match 4.x nomenclature Fix outdated function names in GUI skinning example code Dec 4, 2024
@mhilbrunner mhilbrunner merged commit d8be470 into godotengine:master Dec 5, 2024
1 check passed
@mhilbrunner
Copy link
Member

Merged. Thanks and congrats on your first merged contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:manual Issues and PRs related to the Manual/Tutorials section of the documentation bug cherrypick:4.3 content:example code Issues and PRs involving code examples topic:gui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants