Closed AcrylicShrimp closed 6 months ago
@AcrylicShrimp the above lambda is a multiline lambda - not an inline lambda:
As for multiline lambdas - those are not supported yet, see https://github.com/Scony/godot-gdscript-toolkit/issues/191 As for inline lambdas, you can do the following:
func _on_exit(_system: UINavigationSystem, _element: UIElement):
var on_confirm = func _on_confirm(confirmed: bool): if confirmed: get_tree().quit()
ui_confirm.show(self, "", on_confirm)
Below code is not getting formatted: