Hi all. I'm trying to get a simple plugin working but ran into a "method not found" error. Some background below.
The concept of the plugin is straightforward: I want a panel to appear when the user presses a key; then, I want the user to be able to close the panel by clicking a button. Here's the code that is meant to achieve this:
The plugin code:
var dialogue_editor_window_path = "res://addons/DialogueEditor/DialogueEditorWindow.tscn"
var new_input_event = InputEventKey.new()
var dialogue_editor_window = load(dialogue_editor_window_path).instance()
The code for the panel that will be displayed.
The panel scene itself is very simple--just a Panel node with a single Button as a child. The code above works for getting the panel opened, but when I click the "Close" button, I get the following error:
core/object.cpp:1260 - Error calling method from signal 'pressed': 'Panel(DialogueEditorWindow.gd)::_on_button_pressed': Method not found..
For some reason, the "pressed" signal doesn't find the target method in the panel's script, but it's clearly there as far as I can tell. My assumption is that there's something screwy going on here with the way that tools/editor plugins work, but I'm honestly at a loss. What's strange is that Godot doesn't complain when I try to connect the "pressed" signal to the method--doesn't it usually do this if the method doesn't exist?
Would appreciate any ideas you have. Thanks!