diff options
author | Juan Linietsky <reduzio@gmail.com> | 2021-08-29 19:36:30 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-29 19:36:30 -0300 |
commit | 72bf79186e274ac03d5383bc941ef1e140778e4a (patch) | |
tree | 9ab00490534eb4e416f1101238ae30b8ea97d3ab /scene/gui/dialogs.cpp | |
parent | 3a3c94bec80d192374758daa05013b9bc96660db (diff) | |
parent | a913ae8d56086fc75ab0a768dde84e3d5d94295c (diff) |
Merge pull request #30391 from KoBeWi/hiding_children
Add support for internal nodes
Diffstat (limited to 'scene/gui/dialogs.cpp')
-rw-r--r-- | scene/gui/dialogs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/gui/dialogs.cpp b/scene/gui/dialogs.cpp index da858e8e83..5d98aaa698 100644 --- a/scene/gui/dialogs.cpp +++ b/scene/gui/dialogs.cpp @@ -319,7 +319,7 @@ AcceptDialog::AcceptDialog() { set_clamp_to_embedder(true); bg = memnew(Panel); - add_child(bg); + add_child(bg, false, INTERNAL_MODE_FRONT); hbc = memnew(HBoxContainer); @@ -331,9 +331,9 @@ AcceptDialog::AcceptDialog() { label->set_anchor(SIDE_BOTTOM, Control::ANCHOR_END); label->set_begin(Point2(margin, margin)); label->set_end(Point2(-margin, -button_margin - 10)); - add_child(label); + add_child(label, false, INTERNAL_MODE_FRONT); - add_child(hbc); + add_child(hbc, false, INTERNAL_MODE_FRONT); hbc->add_spacer(); ok = memnew(Button); |