You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-31 18:41:20 +00:00
Use multiple children for dock SplitContainers
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user