From 4676aac33539adb78ed64c4645721dba041a749a Mon Sep 17 00:00:00 2001 From: marynate Date: Wed, 2 Apr 2014 14:47:47 +0800 Subject: [PATCH] Fix #240 TouchScreenButton release signal is not valid --- doc/base/classes.xml | 2 +- scene/2d/screen_button.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 25278f24440..6e4d97c4131 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -26402,7 +26402,7 @@ - + diff --git a/scene/2d/screen_button.cpp b/scene/2d/screen_button.cpp index 871c351479f..32a53234197 100644 --- a/scene/2d/screen_button.cpp +++ b/scene/2d/screen_button.cpp @@ -357,7 +357,7 @@ void TouchScreenButton::_bind_methods() { ADD_PROPERTY( PropertyInfo(Variant::INT,"visibility_mode",PROPERTY_HINT_ENUM,"Always,TouchScreen Only"),_SCS("set_visibility_mode"),_SCS("get_visibility_mode")); ADD_SIGNAL( MethodInfo("pressed" ) ); - ADD_SIGNAL( MethodInfo("release" ) ); + ADD_SIGNAL( MethodInfo("released" ) );