1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Use new dock system for ShaderDock

This commit is contained in:
Logan Detrick
2025-11-26 01:19:02 -08:00
parent 25203e24c4
commit 0d83637853
10 changed files with 77 additions and 105 deletions

View File

@@ -834,6 +834,15 @@ void EditorDockManager::open_dock(EditorDock *p_dock, bool p_set_current) {
_update_layout();
}
void EditorDockManager::make_dock_floating(EditorDock *p_dock) {
ERR_FAIL_NULL(p_dock);
ERR_FAIL_COND_MSG(!all_docks.has(p_dock), vformat("Cannot make unknown dock '%s' floating.", p_dock->get_display_title()));
if (!p_dock->dock_window) {
_open_dock_in_window(p_dock);
}
}
TabContainer *EditorDockManager::get_dock_tab_container(Control *p_dock) const {
return Object::cast_to<TabContainer>(p_dock->get_parent());
}

View File

@@ -146,6 +146,7 @@ public:
void close_dock(EditorDock *p_dock);
void open_dock(EditorDock *p_dock, bool p_set_current = true);
void focus_dock(EditorDock *p_dock);
void make_dock_floating(EditorDock *p_dock);
TabContainer *get_dock_tab_container(Control *p_dock) const;