Merge branch 'master' of github.com:fireball-x/engine into graphics

This commit is contained in:
2youyouo2
2016-08-09 10:18:32 +08:00
6 changed files with 41 additions and 6 deletions
+10
View File
@@ -0,0 +1,10 @@
2youyou2
dabingnn
jareguo
knoxHuang
nantas
natural-law
pandamicro
VisualSJ
zilongshanren
+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 -1
View File
@@ -333,7 +333,7 @@ var Scrollbar = cc.Class({
},
show: function() {
this._autoHideRemainingTime = 0;
this._autoHideRemainingTime = this.autoHideTime;
this._setOpacity(this._opacity);
},
+15 -1
View File
@@ -1328,11 +1328,25 @@ var ScrollView = cc.Class({
}
},
onDisable: function() {
_showScrollbar: function () {
if (this.horizontalScrollBar) {
this.horizontalScrollBar.show();
}
if (this.verticalScrollBar) {
this.verticalScrollBar.show();
}
},
onDisable: function () {
this._hideScrollbar();
this.stopAutoScroll();
},
onEnable: function () {
this._showScrollbar();
},
update: function(dt) {
if (this._autoScrolling) {
this._processAutoScrolling(dt);
+8
View File
@@ -198,6 +198,14 @@ if (window.SocketIO) {
window.io = window.SocketIO;
}
SocketIO.prototype._jsbEmit = SocketIO.prototype.emit;
SocketIO.prototype.emit = function (uri, delegate) {
if (typeof delegate === 'object') {
delegate = JSON.stringify(delegate);
}
this._jsbEmit(uri, delegate);
};
// ccsg
window._ccsg = {
Node: cc.Node,
+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",