mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 01:12:42 +08:00
Merge branch 'master' of github.com:fireball-x/engine into graphics
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
|
||||
2youyou2
|
||||
dabingnn
|
||||
jareguo
|
||||
knoxHuang
|
||||
nantas
|
||||
natural-law
|
||||
pandamicro
|
||||
VisualSJ
|
||||
zilongshanren
|
||||
@@ -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 && {
|
||||
|
||||
@@ -333,7 +333,7 @@ var Scrollbar = cc.Class({
|
||||
},
|
||||
|
||||
show: function() {
|
||||
this._autoHideRemainingTime = 0;
|
||||
this._autoHideRemainingTime = this.autoHideTime;
|
||||
this._setOpacity(this._opacity);
|
||||
},
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user