0 votes

I am not going to be able to access my computer in a while (I don't have access right now), and I was thinking about creating a custom plugin to make it easier to develop branching conversations and such, the details aren't important, but I need to make a dock where you can move around nodes, I can make a script to handle that, but I don't know if that will work when I add the dock. Will it work? Is there anything I can do to make it work?

Thanks in advance.

asked 5 days ago in Engine by PugMasterPug (89 points)

1 Answer

0 votes

The Godot editor is made using Godot itself.
That means, if you can create your dialog editor using Godot's UI as a game prototype, then you can put this in a dock of the editor using an editor plugin (see http://docs.godotengine.org/en/3.0/tutorials/plugins/editor/making_plugins.html#a-custom-dock)

To prototype this easily I would do just that. Create a new scene with a Control as its root. Assume that root will be the space your dock will fit in the editor.
Then make your tool using GUI inside this control. You can use the same nodes as you use in a game, and test it by playing the same, as usual.
Then, when you have something working, add the tool keyword on your scripts so that they will be able to run in the editor. Next, make a new EditorPlugin, and add your scene as a custom dock (as described in the doc). The editor will then simply fit your Control into a dock, and voila :)

There are (many) other gotchas, but I'll leave them for you to experiment and find them out as you progress.

answered 5 days ago by Zylann (13,948 points)
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 How to use this Q&A? before posting your first questions.