From 7d6cc1a828468fec950008f254bdb102ea4ea94f Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Thu, 4 Jul 2024 21:16:35 +0200 Subject: [PATCH] Editor: Adjust layout to work better with task palette on the left --- editor/limbo_ai_editor_plugin.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/editor/limbo_ai_editor_plugin.cpp b/editor/limbo_ai_editor_plugin.cpp index 11efd50..9e93b61 100644 --- a/editor/limbo_ai_editor_plugin.cpp +++ b/editor/limbo_ai_editor_plugin.cpp @@ -1548,7 +1548,12 @@ LimboAIEditor::LimboAIEditor() { hsc->add_child(task_palette); TaskPalettePlacement palette_placement = (TaskPalettePlacement)(int)EDITOR_GET("limbo_ai/editor/task_palette_placement"); if (palette_placement == TaskPalettePlacement::LEFT_SIDE) { - hsc->move_child(task_palette, 0); + VBoxContainer *editor_vbox = memnew(VBoxContainer); + hsc->add_child(editor_vbox); + toolbar->reparent(editor_vbox); + tab_bar_panel->reparent(editor_vbox); + task_tree->reparent(editor_vbox); + usage_hint->reparent(editor_vbox); hsc->set_split_offset(300); } else { hsc->set_split_offset(-300);