-
Notifications
You must be signed in to change notification settings - Fork 107
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
Godot 4.0: Connect is completely different now #383
Comments
gut.gd func set_yield_signal_or_time(obj, signal_name, max_wait, text=''):
obj.connect(signal_name, self, '_yielding_callback', [true])
_yielding_to.obj = obj
_yielding_to.signal_name = signal_name
_yield_timer.set_wait_time(max_wait)
_yield_timer.start()
_was_yield_method_called = true
_lgr.yield_msg(str('-- Yielding to signal "', signal_name, '" or for ', max_wait, ' seconds -- ', text))
return self |
Found this, should be helpful. This appears to be how you would do a connect the 3.4 way (with a string). This was seen in bitbrain's 4.0 conversion PR. It might not be completely right, since it's doing
|
To pass parameters to a method when connecting you must use
|
This has been addressed everywhere it needs to be. |
Connect is different now. Here's some stuff. https://godotengine.org/article/core-refactoring-progress-report-1
You now pass the callback function. That's cool, might stink to port.
The text was updated successfully, but these errors were encountered: