Hi,
I'm trying to add a 'File Menu' a the top of my project. I'm following this tutorial
But this syntax doesn't seem to work anymore. I can't find the right way to do this in the docs either. Does someone know how to do this correctly?
This is the error I'm seeing as well:
Code:
func _ready():
node_graph = $VBoxContainer/MainWindow/GraphContainer/GraphEdit
file_menu = $VBoxContainer/HBoxContainer/HBoxContainer2/FileMenu
file_menu.get_popup().connect("id_pressed", self, "on_item_pressed")
func on_item_pressed():
print("Hello")
Thanks,
Mitchell