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 casing for _on_button_pressed() definition #6882

Closed
wants to merge 1 commit into from

Conversation

aj-n
Copy link

@aj-n aj-n commented Mar 4, 2023

Changing the casing of _on_Button_pressed() to be the correct _on_button_pressed(). May have been changed to all lowercase in 4.0 release?

With default casing, get this error:
E 0:00:02:0994 emit_signalp: Error calling from signal 'pressed' to callable: 'Sprite2D(Sprite.gd)::_on_button_pressed': Method not found. <C++ Source> core/object/object.cpp:1058 @ emit_signalp()

Changing the casing of `_on_Button_pressed()` to be the correct `_on_button_pressed()`. May have been changed to all lowercase in 4.0 release?

With default casing, get this error:
`E 0:00:02:0994   emit_signalp: Error calling from signal 'pressed' to callable: 'Sprite2D(Sprite.gd)::_on_button_pressed': Method not found.
  <C++ Source>   core/object/object.cpp:1058 @ emit_signalp()`
@YuriSizov YuriSizov added bug area:getting started Issues and PRs related to the Getting Started section of the documentation labels Mar 6, 2023
@mhilbrunner
Copy link
Member

Thanks for contributing! This is a duplicate of #6598.

@mhilbrunner mhilbrunner added archived and removed bug area:getting started Issues and PRs related to the Getting Started section of the documentation labels Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants