mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:13:09 +08:00
@@ -64,6 +64,7 @@ if (CC_DEBUG) {
|
||||
"1509": "Argument target must be non-nullptr", //isScheduled
|
||||
"1510": "cc.Scheduler: Illegal target which doesn't have uuid or instanceId",
|
||||
"1511": "cc.Scheduler: pause state of the scheduled task doesn't match the element pause state in Scheduler, the given paused state will be ignored",
|
||||
"1512": "cc.Scheduler: updateFunc parameter is deprecated in scheduleUpdate function, and will be removed in v2.0",
|
||||
//Node: 1600
|
||||
"1600": "getZOrder is deprecated. Please use getLocalZOrder instead.", //getZOrder
|
||||
"1601": "setZOrder is deprecated. Please use setLocalZOrder instead.", //setZOrder
|
||||
@@ -239,6 +240,7 @@ if (CC_DEBUG) {
|
||||
"3115": "Frame Grabber: could not attach texture to framebuffer", //CCGrabber.grab
|
||||
"3116": "WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures", //setTexParameters
|
||||
"3117": "Mimpap texture only works in POT textures", //generateMipmap
|
||||
"3118": "contentSize parameter is deprecated and ignored for cc.Texture2D initWithData function", // initWithData
|
||||
//RectWidth: 3300
|
||||
"3300": "Rect width exceeds maximum margin: %s", //RectWidth
|
||||
//RectHeight: 3400
|
||||
|
||||
@@ -360,7 +360,7 @@ var WebAudioElement = function (buffer, audio) {
|
||||
var self = this;
|
||||
clearTimeout(this._currextTimer);
|
||||
this._currextTimer = setTimeout(function () {
|
||||
if (sys.platform === sys.WECHAT_GAME && self._context.currentTime === 0) {
|
||||
if (sys.platform !== sys.WECHAT_GAME && self._context.currentTime === 0) {
|
||||
touchPlayList.push({
|
||||
instance: self._audio,
|
||||
offset: offset,
|
||||
|
||||
@@ -244,7 +244,7 @@ cc.configuration = /** @lends cc.configuration# */{
|
||||
this._supportsPVRTC = this.checkForGLExtension("GL_IMG_texture_compression_pvrtc");
|
||||
locValueDict["gl.supports_PVRTC"] = this._supportsPVRTC;
|
||||
|
||||
this._supportsNPOT = false; //true;
|
||||
this._supportsNPOT = true;
|
||||
locValueDict["gl.supports_NPOT"] = this._supportsNPOT;
|
||||
|
||||
this._supportsBGRA8888 = this.checkForGLExtension("GL_IMG_texture_format_BGRA888");
|
||||
|
||||
@@ -785,12 +785,12 @@ var game = {
|
||||
}
|
||||
|
||||
if (navigator.userAgent.indexOf("MicroMessenger") > -1) {
|
||||
win.onfocus = function(){ onShow() };
|
||||
win.onfocus = onShow;
|
||||
}
|
||||
|
||||
if (CC_WECHATGAME) {
|
||||
wx.onShow = onShow;
|
||||
wx.onHide = onHidden;
|
||||
wx.onShow(onShow);
|
||||
wx.onHide(onHidden);
|
||||
}
|
||||
|
||||
if ("onpageshow" in window && "onpagehide" in window) {
|
||||
|
||||
@@ -618,6 +618,10 @@ cc.Scheduler = cc._Class.extend({
|
||||
}
|
||||
}
|
||||
|
||||
if (updateFunc) {
|
||||
cc.warnID(1512);
|
||||
}
|
||||
|
||||
var listElement = ListEntry.get(null, null, updateFunc, target, priority, paused, false);
|
||||
var ppList;
|
||||
|
||||
|
||||
@@ -352,7 +352,7 @@ var Texture2D = cc.Class(/** @lends cc.Texture2D# */{
|
||||
* @param {Number} pixelFormat
|
||||
* @param {Number} pixelsWidth
|
||||
* @param {Number} pixelsHeight
|
||||
* @param {Size} contentSize
|
||||
* @param {Size} contentSize contentSize is deprecated and ignored
|
||||
* @return {Boolean}
|
||||
*/
|
||||
initWithData: function (data, pixelFormat, pixelsWidth, pixelsHeight, contentSize) {
|
||||
@@ -854,14 +854,17 @@ game.once(game.EVENT_RENDERER_INITED, function () {
|
||||
};
|
||||
|
||||
_p.initWithData = function (data, pixelFormat, pixelsWidth, pixelsHeight, contentSize) {
|
||||
if (contentSize) {
|
||||
cc.warnID(3118);
|
||||
}
|
||||
var opts = _getSharedOptions();
|
||||
opts.image = data;
|
||||
opts.format = pixelFormat;
|
||||
opts.width = pixelsWidth;
|
||||
opts.height = pixelsHeight;
|
||||
this.update(opts);
|
||||
this.width = contentSize.width;
|
||||
this.height = contentSize.height;
|
||||
this.width = pixelsWidth;
|
||||
this.height = pixelsHeight;
|
||||
this.loaded = true;
|
||||
this.emit("load");
|
||||
return true;
|
||||
|
||||
@@ -172,7 +172,7 @@ proto.initWithWidthAndHeight = function(width, height, format, depthStencilForma
|
||||
if (!node._texture)
|
||||
return false;
|
||||
|
||||
locTexture.initWithData(data, node._pixelFormat, powW, powH, cc.size(width, height));
|
||||
locTexture.initWithData(data, node._pixelFormat, powW, powH);
|
||||
//free( data );
|
||||
|
||||
var oldRBO = gl.getParameter(gl.RENDERBUFFER_BINDING);
|
||||
@@ -181,7 +181,7 @@ proto.initWithWidthAndHeight = function(width, height, format, depthStencilForma
|
||||
this._textureCopy = new cc.Texture2D();
|
||||
if (!this._textureCopy)
|
||||
return false;
|
||||
this._textureCopy.initWithData(data, node._pixelFormat, powW, powH, cc.size(width, height));
|
||||
this._textureCopy.initWithData(data, node._pixelFormat, powW, powH);
|
||||
}
|
||||
|
||||
// generate FBO
|
||||
|
||||
@@ -284,7 +284,14 @@ dragonBones.ArmatureDisplay = cc.Class({
|
||||
|
||||
// IMPLEMENT
|
||||
ctor: function () {
|
||||
this._factory = dragonBones.CCFactory.getInstance();
|
||||
if (CC_JSB) {
|
||||
// TODO Fix me
|
||||
// If using the getFactory in JSB.
|
||||
// There may be throw errors when close the application.
|
||||
this._factory = new dragonBones.CCFactory();
|
||||
} else {
|
||||
this._factory = dragonBones.CCFactory.getInstance();
|
||||
}
|
||||
},
|
||||
|
||||
__preload: function () {
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@
|
||||
"multipipe": "0.3.0",
|
||||
"persistify": "^1.1.1",
|
||||
"require-dir": "0.3.0",
|
||||
"uglify-es": "^3.0.26",
|
||||
"uglify-es": "~3.2.2",
|
||||
"vinyl": "1.1.0",
|
||||
"vinyl-buffer": "1.0.0",
|
||||
"vinyl-source-stream": "1.0.0",
|
||||
|
||||
Reference in New Issue
Block a user