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

Improve code style #1021

Merged
merged 1 commit into from
Mar 25, 2024
Merged

Conversation

AThousandShips
Copy link
Member

@AThousandShips AThousandShips commented Mar 7, 2024

  • Remove unnecessary use of self
  • Connect to signals directly over connect("name")
  • Use call_deferred on callables over call_deferred("name"))
  • Emit signals directly over emit_signal("name"...)

* Remove unnecessary use of `self`
* Connect to signals directly over `connect("name")`
* Use `call_deferred` on callables over `call_deferred("name"))`
* Emit signals directly over `emit_signal("name"...)`
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Tested all modified demos locally in 4.2.1, it works as expected.

Thanks!

@Calinou Calinou merged commit 8291339 into godotengine:master Mar 25, 2024
1 check passed
@AThousandShips AThousandShips deleted the style_improve branch March 25, 2024 16:12
@AThousandShips
Copy link
Member Author

Than you!

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.

2 participants