aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/box_container.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-01-08 19:54:19 -0300
committerJuan Linietsky2017-01-08 19:54:19 -0300
commit94ee7798ced5bc79196c971921c3109e299f8306 (patch)
treee74a933ee4879a742f90aead5fb1001c6531d07a /scene/gui/box_container.cpp
parent4fd464a4c5fc83c34377450935671b7be868333c (diff)
downloadgodot-94ee7798ced5bc79196c971921c3109e299f8306.tar.gz
godot-94ee7798ced5bc79196c971921c3109e299f8306.tar.zst
godot-94ee7798ced5bc79196c971921c3109e299f8306.zip
-removed stop mouse and ignore mouse from control, which were confusing, replaced by mouse filter
Diffstat (limited to '')
-rw-r--r--scene/gui/box_container.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/scene/gui/box_container.cpp b/scene/gui/box_container.cpp
index 531c3b0a0..95e796ab5 100644
--- a/scene/gui/box_container.cpp
+++ b/scene/gui/box_container.cpp
@@ -280,7 +280,8 @@ BoxContainer::AlignMode BoxContainer::get_alignment() const {
void BoxContainer::add_spacer(bool p_begin) {
Control *c = memnew( Control );
- c->set_stop_mouse(false);
+ c->set_mouse_filter(MOUSE_FILTER_PASS);
+
if (vertical)
c->set_v_size_flags(SIZE_EXPAND_FILL);
else
@@ -296,7 +297,7 @@ BoxContainer::BoxContainer(bool p_vertical) {
vertical=p_vertical;
align = ALIGN_BEGIN;
// set_ignore_mouse(true);
- set_stop_mouse(false);
+ set_mouse_filter(MOUSE_FILTER_PASS);
}
void BoxContainer::_bind_methods() {