-removed stop mouse and ignore mouse from control, which were confusing, replaced by mouse filter

This commit is contained in:
Juan Linietsky
2017-01-08 19:54:19 -03:00
parent 4fd464a4c5
commit 94ee7798ce
20 changed files with 53 additions and 57 deletions

View File

@@ -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() {