mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-25 03:08:29 +00:00
更新版本号至 2.0.0
This commit is contained in:
parent
181e0e1b4d
commit
bc989c3e14
@ -1,3 +1,3 @@
|
||||
Cocos Enhance Kit v1.2.0 引擎源码
|
||||
Cocos Enhance Kit v2.0.0 引擎源码
|
||||
|
||||
适配 v2.4.12 引擎
|
||||
适配 v2.4.13 引擎
|
||||
|
@ -1 +1 @@
|
||||
1.2.0
|
||||
2.0.0
|
@ -1 +1 @@
|
||||
1.2.0
|
||||
2.0.0
|
@ -1 +1 @@
|
||||
1.2.0
|
||||
2.0.0
|
@ -50006,6 +50006,21 @@
|
||||
update: function update() {
|
||||
if (!this.enabled) return;
|
||||
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;
|
||||
@ -57137,6 +57152,7 @@
|
||||
};
|
||||
_proto.reset = function reset() {
|
||||
this.handlers.length = 0;
|
||||
this.nextHandler = null;
|
||||
};
|
||||
return MultiBatcher;
|
||||
})();
|
||||
@ -57219,7 +57235,7 @@
|
||||
"use strict";
|
||||
cc.sp = {
|
||||
inited: false,
|
||||
version: "1.2.0",
|
||||
version: "2.0.0",
|
||||
MAX_MULTITEXTURE_NUM: -1,
|
||||
autoSwitchMaterial: true,
|
||||
allowDynamicAtlas: true,
|
||||
@ -85513,6 +85529,9 @@
|
||||
var rawTimeline = rawTimelines_3[_b];
|
||||
this._parseSlotTimeline(rawTimeline);
|
||||
}
|
||||
this._actionFrames.sort((function(a, b) {
|
||||
return a.frameStart - b.frameStart;
|
||||
}));
|
||||
}
|
||||
if (dragonBones.DataParser.FFD in rawData) {
|
||||
var rawTimelines = rawData[dragonBones.DataParser.FFD];
|
||||
@ -87719,7 +87738,7 @@
|
||||
return cc.Material.getBuiltinMaterial("2d-spine");
|
||||
},
|
||||
_updateMaterial: function _updateMaterial() {
|
||||
var useTint = this.useTint || this.isAnimationCached() && true;
|
||||
var useTint = this.useTint;
|
||||
var baseMaterial = this.getMaterial(0);
|
||||
if (baseMaterial) {
|
||||
var isMultiSupport = baseMaterial.material.isMultiSupport();
|
||||
@ -87746,7 +87765,7 @@
|
||||
_updateUseTint: function _updateUseTint() {
|
||||
var baseMaterial = this.getMaterial(0);
|
||||
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);
|
||||
}
|
||||
this._materialCache = {};
|
||||
@ -96983,7 +97002,7 @@
|
||||
var baseMaterial = comp._materials[0];
|
||||
if (!baseMaterial) return;
|
||||
_useMulti = baseMaterial.material.isMultiSupport();
|
||||
_useTint = comp.useTint || comp.isAnimationCached();
|
||||
_useTint = comp.useTint;
|
||||
_vertexFormat = _useTint ? _useMulti ? VFTwoColorTexId : VFTwoColor : _useMulti ? VFOneColorTexId : comp.isAnimationCached() ? VFTwoColor : VFOneColor;
|
||||
_perVertexSize = _useTint ? _useMulti ? 7 : 6 : _useMulti ? 6 : comp.isAnimationCached() ? 6 : 5;
|
||||
_node = comp.node;
|
||||
@ -119751,7 +119770,7 @@
|
||||
defineDeprecatedMacroGetter("CC_QQPLAY", QQPLAY);
|
||||
true;
|
||||
cc._Test = {};
|
||||
var engineVersion = "2.4.12";
|
||||
var engineVersion = "2.4.13";
|
||||
_global["CocosEngine"] = cc.ENGINE_VERSION = engineVersion;
|
||||
}), {} ]
|
||||
}, {}, [ 501 ]);
|
||||
|
File diff suppressed because one or more lines are too long
@ -49877,6 +49877,21 @@
|
||||
update: function update() {
|
||||
if (!this.enabled) return;
|
||||
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;
|
||||
@ -56830,6 +56845,7 @@
|
||||
};
|
||||
_proto.reset = function reset() {
|
||||
this.handlers.length = 0;
|
||||
this.nextHandler = null;
|
||||
};
|
||||
return MultiBatcher;
|
||||
})();
|
||||
@ -56912,7 +56928,7 @@
|
||||
"use strict";
|
||||
cc.sp = {
|
||||
inited: false,
|
||||
version: "1.2.0",
|
||||
version: "2.0.0",
|
||||
MAX_MULTITEXTURE_NUM: -1,
|
||||
autoSwitchMaterial: true,
|
||||
allowDynamicAtlas: true,
|
||||
@ -73799,7 +73815,7 @@
|
||||
return cc.Material.getBuiltinMaterial("2d-spine");
|
||||
},
|
||||
_updateMaterial: function _updateMaterial() {
|
||||
var useTint = this.useTint || this.isAnimationCached() && false;
|
||||
var useTint = this.useTint;
|
||||
var baseMaterial = this.getMaterial(0);
|
||||
if (baseMaterial) {
|
||||
var isMultiSupport = baseMaterial.material.isMultiSupport();
|
||||
@ -73827,7 +73843,7 @@
|
||||
_updateUseTint: function _updateUseTint() {
|
||||
var baseMaterial = this.getMaterial(0);
|
||||
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);
|
||||
}
|
||||
this._materialCache = {};
|
||||
@ -75324,7 +75340,7 @@
|
||||
var baseMaterial = comp._materials[0];
|
||||
if (!baseMaterial) return;
|
||||
_useMulti = baseMaterial.material.isMultiSupport();
|
||||
_useTint = comp.useTint || comp.isAnimationCached();
|
||||
_useTint = comp.useTint;
|
||||
_vertexFormat = _useTint ? _useMulti ? VFTwoColorTexId : VFTwoColor : _useMulti ? VFOneColorTexId : comp.isAnimationCached() ? VFTwoColor : VFOneColor;
|
||||
_perVertexSize = _useTint ? _useMulti ? 7 : 6 : _useMulti ? 6 : comp.isAnimationCached() ? 6 : 5;
|
||||
_node = comp.node;
|
||||
@ -98044,7 +98060,7 @@
|
||||
defineDeprecatedMacroGetter("CC_QQPLAY", QQPLAY);
|
||||
true;
|
||||
cc._Test = {};
|
||||
var engineVersion = "2.4.12";
|
||||
var engineVersion = "2.4.13";
|
||||
_global["CocosEngine"] = cc.ENGINE_VERSION = engineVersion;
|
||||
}), {} ]
|
||||
}, {}, [ 464 ]);
|
@ -8,7 +8,7 @@ cc.sp = {
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
version: "1.2.0",
|
||||
version: "2.0.0",
|
||||
|
||||
/**
|
||||
* 最大纹理插槽数量
|
||||
|
@ -27,4 +27,4 @@
|
||||
"resources/**/*"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -1 +1 @@
|
||||
1.2.0
|
||||
2.0.0
|
Loading…
Reference in New Issue
Block a user