summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-01-08 17:27:48 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-01-08 17:27:48 -0300
commita464afb4e762b981e853b2c1dcc05654d054a51c (patch)
tree09b42b32f40f25c383dcc9ee0abc60e61ac64b38 /scene/gui
parent10938e8bb9f72b235bc6609e6b50e6f6d9aee6a5 (diff)
Removed the "released" signal from button, it's pointless now that button_down and button_up exist.
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/base_button.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/base_button.cpp b/scene/gui/base_button.cpp
index 49cd7758df..05646320cc 100644
--- a/scene/gui/base_button.cpp
+++ b/scene/gui/base_button.cpp
@@ -90,10 +90,11 @@ void BaseButton::_gui_input(InputEvent p_event) {
emit_signal("button_up");
- if (status.press_attempt && status.pressing_inside) {
+/* this is pointless if (status.press_attempt && status.pressing_inside) {
// released();
emit_signal("released");
}
+*/
status.press_attempt=false;
}
update();
@@ -485,7 +486,6 @@ void BaseButton::_bind_methods() {
BIND_VMETHOD(MethodInfo("_toggled",PropertyInfo(Variant::BOOL,"pressed")));
ADD_SIGNAL( MethodInfo("pressed" ) );
- ADD_SIGNAL( MethodInfo("released" ) );
ADD_SIGNAL( MethodInfo("button_up") );
ADD_SIGNAL( MethodInfo("button_down") );
ADD_SIGNAL( MethodInfo("toggled", PropertyInfo( Variant::BOOL,"pressed") ) );