diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-06-14 02:13:47 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-06-14 02:13:47 -0300 |
commit | 8228fea02feabbfdd4def950e67f9ea6507d981d (patch) | |
tree | 95ccefb9330b693e44f20bddfbf8a6544ad34341 /scene/gui | |
parent | edf1f271180a8e2481ebb3d7808f47493e5ad13e (diff) |
missing changes
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/split_container.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/gui/split_container.cpp b/scene/gui/split_container.cpp index d02c833be9..d7ee7a6b86 100644 --- a/scene/gui/split_container.cpp +++ b/scene/gui/split_container.cpp @@ -345,6 +345,7 @@ void SplitContainer::_input_event(const InputEvent& p_event) { expand_ofs=drag_ofs+((vertical?mm.y:mm.x)-drag_from); queue_sort(); + emit_signal("dragged",get_split_offset()); } } @@ -431,11 +432,13 @@ void SplitContainer::_bind_methods() { ObjectTypeDB::bind_method(_MD("set_dragger_visible","visible"),&SplitContainer::set_dragger_visible); ObjectTypeDB::bind_method(_MD("is_dragger_visible"),&SplitContainer::is_dragger_visible); + ADD_SIGNAL( MethodInfo("dragged",PropertyInfo(Variant::INT,"offset"))); ADD_PROPERTY( PropertyInfo(Variant::INT,"split/offset"),_SCS("set_split_offset"),_SCS("get_split_offset")); ADD_PROPERTY( PropertyInfo(Variant::INT,"split/collapsed"),_SCS("set_collapsed"),_SCS("is_collapsed")); ADD_PROPERTY( PropertyInfo(Variant::INT,"split/dragger_visible"),_SCS("set_dragger_visible"),_SCS("is_dragger_visible")); + } SplitContainer::SplitContainer(bool p_vertical) { |