更新版本号至 2.0.0

This commit is contained in:
SmallMain 2024-10-25 17:49:07 +08:00
parent 181e0e1b4d
commit bc989c3e14
No known key found for this signature in database
10 changed files with 54 additions and 19 deletions

View File

@ -1,3 +1,3 @@
Cocos Enhance Kit v1.2.0 引擎源码 Cocos Enhance Kit v2.0.0 引擎源码
适配 v2.4.12 引擎 适配 v2.4.13 引擎

View File

@ -1 +1 @@
1.2.0 2.0.0

View File

@ -1 +1 @@
1.2.0 2.0.0

View File

@ -1 +1 @@
1.2.0 2.0.0

View File

@ -50006,6 +50006,21 @@
update: function update() { update: function update() {
if (!this.enabled) return; if (!this.enabled) return;
for (var i = 0; i <= _atlasIndex; i++) _atlases[i].update(); for (var i = 0; i <= _atlasIndex; i++) _atlases[i].update();
},
getUnusedAtlas: function getUnusedAtlas() {
if (!this.enabled) return null;
for (var i = 0; i <= _atlasIndex; i++) if (_atlases[i].isEmpty()) return _atlases[i];
return null;
},
deleteAtlas: function deleteAtlas(index) {
if (!this.enabled) return;
_atlases[index].destroy();
_atlases.splice(index, 1);
_atlasIndex--;
},
destroyUnusedAtlases: function destroyUnusedAtlases() {
if (!this.enabled) return;
for (var i = 0; i <= _atlasIndex; i++) _atlases[i].isEmpty() && _atlases[i].destroy();
} }
}; };
module.exports = cc.dynamicAtlasManager = dynamicAtlasManager; module.exports = cc.dynamicAtlasManager = dynamicAtlasManager;
@ -57137,6 +57152,7 @@
}; };
_proto.reset = function reset() { _proto.reset = function reset() {
this.handlers.length = 0; this.handlers.length = 0;
this.nextHandler = null;
}; };
return MultiBatcher; return MultiBatcher;
})(); })();
@ -57219,7 +57235,7 @@
"use strict"; "use strict";
cc.sp = { cc.sp = {
inited: false, inited: false,
version: "1.2.0", version: "2.0.0",
MAX_MULTITEXTURE_NUM: -1, MAX_MULTITEXTURE_NUM: -1,
autoSwitchMaterial: true, autoSwitchMaterial: true,
allowDynamicAtlas: true, allowDynamicAtlas: true,
@ -85513,6 +85529,9 @@
var rawTimeline = rawTimelines_3[_b]; var rawTimeline = rawTimelines_3[_b];
this._parseSlotTimeline(rawTimeline); this._parseSlotTimeline(rawTimeline);
} }
this._actionFrames.sort((function(a, b) {
return a.frameStart - b.frameStart;
}));
} }
if (dragonBones.DataParser.FFD in rawData) { if (dragonBones.DataParser.FFD in rawData) {
var rawTimelines = rawData[dragonBones.DataParser.FFD]; var rawTimelines = rawData[dragonBones.DataParser.FFD];
@ -87719,7 +87738,7 @@
return cc.Material.getBuiltinMaterial("2d-spine"); return cc.Material.getBuiltinMaterial("2d-spine");
}, },
_updateMaterial: function _updateMaterial() { _updateMaterial: function _updateMaterial() {
var useTint = this.useTint || this.isAnimationCached() && true; var useTint = this.useTint;
var baseMaterial = this.getMaterial(0); var baseMaterial = this.getMaterial(0);
if (baseMaterial) { if (baseMaterial) {
var isMultiSupport = baseMaterial.material.isMultiSupport(); var isMultiSupport = baseMaterial.material.isMultiSupport();
@ -87746,7 +87765,7 @@
_updateUseTint: function _updateUseTint() { _updateUseTint: function _updateUseTint() {
var baseMaterial = this.getMaterial(0); var baseMaterial = this.getMaterial(0);
if (baseMaterial) { if (baseMaterial) {
var useTint = this.useTint || this.isAnimationCached() && true; var useTint = this.useTint;
baseMaterial.material.isMultiSupport() ? this._defineMaterialTint(baseMaterial, useTint) : baseMaterial.define("USE_TINT", useTint); baseMaterial.material.isMultiSupport() ? this._defineMaterialTint(baseMaterial, useTint) : baseMaterial.define("USE_TINT", useTint);
} }
this._materialCache = {}; this._materialCache = {};
@ -96983,7 +97002,7 @@
var baseMaterial = comp._materials[0]; var baseMaterial = comp._materials[0];
if (!baseMaterial) return; if (!baseMaterial) return;
_useMulti = baseMaterial.material.isMultiSupport(); _useMulti = baseMaterial.material.isMultiSupport();
_useTint = comp.useTint || comp.isAnimationCached(); _useTint = comp.useTint;
_vertexFormat = _useTint ? _useMulti ? VFTwoColorTexId : VFTwoColor : _useMulti ? VFOneColorTexId : comp.isAnimationCached() ? VFTwoColor : VFOneColor; _vertexFormat = _useTint ? _useMulti ? VFTwoColorTexId : VFTwoColor : _useMulti ? VFOneColorTexId : comp.isAnimationCached() ? VFTwoColor : VFOneColor;
_perVertexSize = _useTint ? _useMulti ? 7 : 6 : _useMulti ? 6 : comp.isAnimationCached() ? 6 : 5; _perVertexSize = _useTint ? _useMulti ? 7 : 6 : _useMulti ? 6 : comp.isAnimationCached() ? 6 : 5;
_node = comp.node; _node = comp.node;
@ -119751,7 +119770,7 @@
defineDeprecatedMacroGetter("CC_QQPLAY", QQPLAY); defineDeprecatedMacroGetter("CC_QQPLAY", QQPLAY);
true; true;
cc._Test = {}; cc._Test = {};
var engineVersion = "2.4.12"; var engineVersion = "2.4.13";
_global["CocosEngine"] = cc.ENGINE_VERSION = engineVersion; _global["CocosEngine"] = cc.ENGINE_VERSION = engineVersion;
}), {} ] }), {} ]
}, {}, [ 501 ]); }, {}, [ 501 ]);

File diff suppressed because one or more lines are too long

View File

@ -49877,6 +49877,21 @@
update: function update() { update: function update() {
if (!this.enabled) return; if (!this.enabled) return;
for (var i = 0; i <= _atlasIndex; i++) _atlases[i].update(); for (var i = 0; i <= _atlasIndex; i++) _atlases[i].update();
},
getUnusedAtlas: function getUnusedAtlas() {
if (!this.enabled) return null;
for (var i = 0; i <= _atlasIndex; i++) if (_atlases[i].isEmpty()) return _atlases[i];
return null;
},
deleteAtlas: function deleteAtlas(index) {
if (!this.enabled) return;
_atlases[index].destroy();
_atlases.splice(index, 1);
_atlasIndex--;
},
destroyUnusedAtlases: function destroyUnusedAtlases() {
if (!this.enabled) return;
for (var i = 0; i <= _atlasIndex; i++) _atlases[i].isEmpty() && _atlases[i].destroy();
} }
}; };
module.exports = cc.dynamicAtlasManager = dynamicAtlasManager; module.exports = cc.dynamicAtlasManager = dynamicAtlasManager;
@ -56830,6 +56845,7 @@
}; };
_proto.reset = function reset() { _proto.reset = function reset() {
this.handlers.length = 0; this.handlers.length = 0;
this.nextHandler = null;
}; };
return MultiBatcher; return MultiBatcher;
})(); })();
@ -56912,7 +56928,7 @@
"use strict"; "use strict";
cc.sp = { cc.sp = {
inited: false, inited: false,
version: "1.2.0", version: "2.0.0",
MAX_MULTITEXTURE_NUM: -1, MAX_MULTITEXTURE_NUM: -1,
autoSwitchMaterial: true, autoSwitchMaterial: true,
allowDynamicAtlas: true, allowDynamicAtlas: true,
@ -73799,7 +73815,7 @@
return cc.Material.getBuiltinMaterial("2d-spine"); return cc.Material.getBuiltinMaterial("2d-spine");
}, },
_updateMaterial: function _updateMaterial() { _updateMaterial: function _updateMaterial() {
var useTint = this.useTint || this.isAnimationCached() && false; var useTint = this.useTint;
var baseMaterial = this.getMaterial(0); var baseMaterial = this.getMaterial(0);
if (baseMaterial) { if (baseMaterial) {
var isMultiSupport = baseMaterial.material.isMultiSupport(); var isMultiSupport = baseMaterial.material.isMultiSupport();
@ -73827,7 +73843,7 @@
_updateUseTint: function _updateUseTint() { _updateUseTint: function _updateUseTint() {
var baseMaterial = this.getMaterial(0); var baseMaterial = this.getMaterial(0);
if (baseMaterial) { if (baseMaterial) {
var useTint = this.useTint || this.isAnimationCached() && false; var useTint = this.useTint;
baseMaterial.material.isMultiSupport() ? this._defineMaterialTint(baseMaterial, useTint) : baseMaterial.define("USE_TINT", useTint); baseMaterial.material.isMultiSupport() ? this._defineMaterialTint(baseMaterial, useTint) : baseMaterial.define("USE_TINT", useTint);
} }
this._materialCache = {}; this._materialCache = {};
@ -75324,7 +75340,7 @@
var baseMaterial = comp._materials[0]; var baseMaterial = comp._materials[0];
if (!baseMaterial) return; if (!baseMaterial) return;
_useMulti = baseMaterial.material.isMultiSupport(); _useMulti = baseMaterial.material.isMultiSupport();
_useTint = comp.useTint || comp.isAnimationCached(); _useTint = comp.useTint;
_vertexFormat = _useTint ? _useMulti ? VFTwoColorTexId : VFTwoColor : _useMulti ? VFOneColorTexId : comp.isAnimationCached() ? VFTwoColor : VFOneColor; _vertexFormat = _useTint ? _useMulti ? VFTwoColorTexId : VFTwoColor : _useMulti ? VFOneColorTexId : comp.isAnimationCached() ? VFTwoColor : VFOneColor;
_perVertexSize = _useTint ? _useMulti ? 7 : 6 : _useMulti ? 6 : comp.isAnimationCached() ? 6 : 5; _perVertexSize = _useTint ? _useMulti ? 7 : 6 : _useMulti ? 6 : comp.isAnimationCached() ? 6 : 5;
_node = comp.node; _node = comp.node;
@ -98044,7 +98060,7 @@
defineDeprecatedMacroGetter("CC_QQPLAY", QQPLAY); defineDeprecatedMacroGetter("CC_QQPLAY", QQPLAY);
true; true;
cc._Test = {}; cc._Test = {};
var engineVersion = "2.4.12"; var engineVersion = "2.4.13";
_global["CocosEngine"] = cc.ENGINE_VERSION = engineVersion; _global["CocosEngine"] = cc.ENGINE_VERSION = engineVersion;
}), {} ] }), {} ]
}, {}, [ 464 ]); }, {}, [ 464 ]);

View File

@ -8,7 +8,7 @@ cc.sp = {
/** /**
* 版本号 * 版本号
*/ */
version: "1.2.0", version: "2.0.0",
/** /**
* 最大纹理插槽数量 * 最大纹理插槽数量

View File

@ -27,4 +27,4 @@
"resources/**/*" "resources/**/*"
] ]
} }
} }

View File

@ -1 +1 @@
1.2.0 2.0.0