0 votes

I have a relatively small, simple dock plugin that works exactly as it should when ran in the editor or by itself, but as soon as I add it as a dock, not much in terms of signals seems to function.
I can hit buttons and press enter as much as I want, nothing appears and I can't tell why because I've seen other dock plugins use signals just fine.

Can someone take a look at the Godot project files here and give me a pointer to what I'm doing wrong?

For reference, it's supposed to let you add task groups by typing a title into the lineedit at the top and then hitting enter/pressing the +.
Then each group can add and delete tasks, minimize or be deleted and the whole thing saves its state on disc in user://dev_todo_deck/todo_dock_state.save and reload it when the project is opened again, which works perfectly fine outside of the dock.

What happens for me is that I can write a title into the LineEdit, but neither enter nor hitting the + add a group. If I manually add a default group through the editor, it shows up fine but none of the buttons on that will work then, it seems like either the scripts or the signals just don't run/register or something.

in Engine by (25 points)

1 Answer

+2 votes
Best answer

You need to add tool keyword at first line in each .gd

by (9,768 points)
selected by

Thanks, thankfully that was easier of a fix than I thought!
I feel like the Godot docs don't make it clear enough that every single script in the plugin has to be a tool, I kind of just expected the editor to know that "oh yes, this is a plugin, I'll display it" instead.

But doesn't matter, works as advertised now, thanks again!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.