Merge pull request #1009 from zilongshanren/fix-button-color-transition

fix button color transition interactive=false
This commit is contained in:
Jare Guo
2016-08-03 17:43:57 +08:00
committed by GitHub
2 changed files with 7 additions and 4 deletions
+6 -4
View File
@@ -103,6 +103,12 @@ var Button = cc.Class({
ctor: function () {
this._resetState();
this._fromColor = null;
this._toColor = null;
this._time = 0;
this._transitionFinished = true;
this._sprite = null;
if(CC_EDITOR) {
@@ -114,10 +120,6 @@ var Button = cc.Class({
this._pressed = false;
this._hovered = false;
this._fromColor = null;
this._toColor = null;
this._time = 0;
this._transitionFinished = true;
},
editor: CC_EDITOR && {
+1
View File
@@ -27,6 +27,7 @@
"gulp-rename": "1.2.2",
"gulp-shell": "0.4.1",
"gulp-size": "2.1.0",
"async": "1.5.2",
"gulp-sourcemaps": "1.5.2",
"gulp-uglify": "1.5.3",
"gulp-util": "3.0.6",