Add EditorDock's own DockSlot enum

This commit is contained in:
kobewi
2025-12-27 11:39:27 +01:00
parent 05c097e5e2
commit 9f96d2199d
36 changed files with 111 additions and 42 deletions

View File

@@ -42,6 +42,7 @@
#include "scene/gui/color_rect.h"
#include "scene/gui/label.h"
#include "scene/gui/texture_rect.h"
#include "scene/main/window.h"
Label *CreditsRoll::_create_label(const String &p_with_text, LabelSize p_size) {
Label *label = memnew(Label);

View File

@@ -207,7 +207,7 @@ Button *EditorBottomPanel::add_item(String p_text, Control *p_item, const Ref<Sh
dock->set_dock_shortcut(p_shortcut);
dock->set_global(false);
dock->set_transient(true);
dock->set_default_slot(DockConstants::DOCK_SLOT_BOTTOM);
dock->set_default_slot(EditorDock::DOCK_SLOT_BOTTOM);
dock->set_available_layouts(EditorDock::DOCK_LAYOUT_HORIZONTAL);
EditorDockManager::get_singleton()->add_dock(dock);
bottom_docks.push_back(dock);