Use multiple children for dock SplitContainers

This commit is contained in:
kit 2025-07-08 13:20:58 -04:00
parent 78d91947f6
commit 8dfcae15fd
5 changed files with 39 additions and 59 deletions

View file

@ -2130,15 +2130,9 @@ ScriptEditorDebugger::ScriptEditorDebugger() {
docontinue->set_shortcut(ED_GET_SHORTCUT("debugger/continue"));
docontinue->connect(SceneStringName(pressed), callable_mp(this, &ScriptEditorDebugger::debug_continue));
HSplitContainer *parent_sc = memnew(HSplitContainer);
vbc->add_child(parent_sc);
parent_sc->set_v_size_flags(SIZE_EXPAND_FILL);
parent_sc->set_split_offset(500 * EDSCALE);
HSplitContainer *sc = memnew(HSplitContainer);
sc->set_v_size_flags(SIZE_EXPAND_FILL);
sc->set_h_size_flags(SIZE_EXPAND_FILL);
parent_sc->add_child(sc);
vbc->add_child(sc);
VBoxContainer *stack_vb = memnew(VBoxContainer);
stack_vb->set_h_size_flags(SIZE_EXPAND_FILL);
@ -2204,7 +2198,7 @@ ScriptEditorDebugger::ScriptEditorDebugger() {
breakpoints_tree->connect("item_activated", callable_mp(this, &ScriptEditorDebugger::_breakpoint_tree_clicked));
breakpoints_tree->create_item();
parent_sc->add_child(breakpoints_tree);
sc->add_child(breakpoints_tree);
tabs->add_child(dbg);
breakpoints_menu = memnew(PopupMenu);