I have found something that maybe a bug or just a lack of experience on my part. I have simplified at maximum the problem.
I have the following scene:
In the root node (Node2D) I have the following code:
if event is InputEventMouseButton:
In the second node (PopupMenu) I have this code:
connect("id_pressed", self, "_on_item_pressed")
print(get_item_text(id), " pressed")
Nothing else. No more config in a standard Godot 3.1 project.
Now, if I run the project, I see the popup menu in screen, but if I click to any of the items nothing happens (
print is never executed).
In order to get
print running I have to comment or remove the line
Input.set_default_cursor_shape(Input.CURSOR_DRAG) in "Node2D.gd" and then the result is the expected with the
print showing the option selected.
Why is this happening?
(Of course, this program has no sense, that's just a simplification of my real program).