You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Removed the "released" signal from button, it's pointless now that button_down and button_up exist.
This commit is contained in:
@@ -90,10 +90,11 @@ void BaseButton::_gui_input(InputEvent p_event) {
|
|||||||
|
|
||||||
emit_signal("button_up");
|
emit_signal("button_up");
|
||||||
|
|
||||||
if (status.press_attempt && status.pressing_inside) {
|
/* this is pointless if (status.press_attempt && status.pressing_inside) {
|
||||||
// released();
|
// released();
|
||||||
emit_signal("released");
|
emit_signal("released");
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
status.press_attempt=false;
|
status.press_attempt=false;
|
||||||
}
|
}
|
||||||
update();
|
update();
|
||||||
@@ -485,7 +486,6 @@ void BaseButton::_bind_methods() {
|
|||||||
BIND_VMETHOD(MethodInfo("_toggled",PropertyInfo(Variant::BOOL,"pressed")));
|
BIND_VMETHOD(MethodInfo("_toggled",PropertyInfo(Variant::BOOL,"pressed")));
|
||||||
|
|
||||||
ADD_SIGNAL( MethodInfo("pressed" ) );
|
ADD_SIGNAL( MethodInfo("pressed" ) );
|
||||||
ADD_SIGNAL( MethodInfo("released" ) );
|
|
||||||
ADD_SIGNAL( MethodInfo("button_up") );
|
ADD_SIGNAL( MethodInfo("button_up") );
|
||||||
ADD_SIGNAL( MethodInfo("button_down") );
|
ADD_SIGNAL( MethodInfo("button_down") );
|
||||||
ADD_SIGNAL( MethodInfo("toggled", PropertyInfo( Variant::BOOL,"pressed") ) );
|
ADD_SIGNAL( MethodInfo("toggled", PropertyInfo( Variant::BOOL,"pressed") ) );
|
||||||
|
|||||||
Reference in New Issue
Block a user