Zylann / godot_editor_debugger_plugin

A plugin to inspect the editor's scene tree itself, within the editor.
196 stars 20 forks source link

Popup Actions #6

Closed Xananax closed 1 year ago

Xananax commented 1 year ago

The "Save Branch as Scene" button is clipped, and clicking it does not work in Godot 4 anymore.

image

This PR replaces the button with more idiomatic menu items.

It also adds two options:

image

Why two new functions?

At GDQuest, we're building editor plugins that need to hook deep into the existing interface (far more than the regular add_control_to_dock functions permit).

These elements are only sometimes named and can move around, so having a branch path is often insufficient.

Extracting the paths and types allows us to build proper queries to find the needed elements by mixing up rules like "find a child of a TYPE with name NAME".

Most people using this plugin may require such information to target the nodes they need, so this has a generic value. I have wanted this feature in nearly every plugin I've worked on.

Zylann commented 1 year ago

Thanks!