Skip to content

Commit

Permalink
更新版本号至 2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
smallmain committed Nov 29, 2024
1 parent 203e5e2 commit d281210
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 29 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Cocos Enhance Kit v2.3.0 引擎源码
Cocos Enhance Kit v2.4.0 引擎源码

适配 v2.4.13 引擎
2 changes: 1 addition & 1 deletion adapters/VERSION.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.0
2.4.0
2 changes: 1 addition & 1 deletion cocos2d-x/VERSION.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.0
2.4.0
2 changes: 1 addition & 1 deletion engine/VERSION.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.0
2.4.0
23 changes: 16 additions & 7 deletions engine/bin/cocos2d-js-for-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -28904,9 +28904,11 @@
interactable: {
default: true,
tooltip: (true, "i18n:COMPONENT.button.interactable"),
notify: function notify() {
this._updateState();
this.interactable || this._resetState();
notify: function notify(oldValue) {
if (oldValue !== this.interactable) {
this._updateState();
this.interactable || this._resetState();
}
},
animatable: false
},
Expand Down Expand Up @@ -29153,7 +29155,6 @@
}
},
update: function update(dt) {
var target = this._getTarget();
if (this._transitionFinished) return;
if (this.transition !== Transition.COLOR && this.transition !== Transition.SCALE) return;
this.time += dt;
Expand All @@ -29163,7 +29164,10 @@
if (this.transition === Transition.COLOR) {
var color = this._fromColor.lerp(this._toColor, ratio);
this._setTargetColor(color);
} else this.transition === Transition.SCALE && this._originalScale && (target.scale = this._fromScale.lerp(this._toScale, ratio));
} else if (this.transition === Transition.SCALE && this._originalScale) {
var target = this._getTarget();
target.scale = this._fromScale.lerp(this._toScale, ratio);
}
1 === ratio && (this._transitionFinished = true);
},
_registerNodeEvent: function _registerNodeEvent() {
Expand Down Expand Up @@ -50583,6 +50587,9 @@
}
} else horizontalKernings.length = 0;
};
_proto._clearHorizontalKerning = function _clearHorizontalKerning() {
_horizontalKernings.length = 0;
};
_proto._multilineTextWrap = function _multilineTextWrap(nextTokenFunc) {
var textLen = _string.length;
var lineIndex = 0;
Expand Down Expand Up @@ -51400,7 +51407,9 @@
_isBold && (fontDesc = "bold " + fontDesc);
return fontDesc;
};
_proto2._computeHorizontalKerningForText = function _computeHorizontalKerningForText() {};
_proto2._computeHorizontalKerningForText = function _computeHorizontalKerningForText() {
this._clearHorizontalKerning();
};
_proto2._determineRect = function _determineRect(tempRect) {
return false;
};
Expand Down Expand Up @@ -57235,7 +57244,7 @@
"use strict";
cc.sp = {
inited: false,
version: "2.3.0",
version: "2.4.0",
MAX_MULTITEXTURE_NUM: -1,
autoSwitchMaterial: true,
allowDynamicAtlas: true,
Expand Down
2 changes: 1 addition & 1 deletion engine/bin/cocos2d-js-for-preview.js.map

Large diffs are not rendered by default.

37 changes: 23 additions & 14 deletions engine/bin/cocos2d-jsb-for-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -28888,9 +28888,11 @@
interactable: {
default: true,
tooltip: (true, "i18n:COMPONENT.button.interactable"),
notify: function notify() {
this._updateState();
this.interactable || this._resetState();
notify: function notify(oldValue) {
if (oldValue !== this.interactable) {
this._updateState();
this.interactable || this._resetState();
}
},
animatable: false
},
Expand Down Expand Up @@ -29137,7 +29139,6 @@
}
},
update: function update(dt) {
var target = this._getTarget();
if (this._transitionFinished) return;
if (this.transition !== Transition.COLOR && this.transition !== Transition.SCALE) return;
this.time += dt;
Expand All @@ -29147,7 +29148,10 @@
if (this.transition === Transition.COLOR) {
var color = this._fromColor.lerp(this._toColor, ratio);
this._setTargetColor(color);
} else this.transition === Transition.SCALE && this._originalScale && (target.scale = this._fromScale.lerp(this._toScale, ratio));
} else if (this.transition === Transition.SCALE && this._originalScale) {
var target = this._getTarget();
target.scale = this._fromScale.lerp(this._toScale, ratio);
}
1 === ratio && (this._transitionFinished = true);
},
_registerNodeEvent: function _registerNodeEvent() {
Expand Down Expand Up @@ -46119,7 +46123,7 @@
function parseInstances(data) {
var instances = data[5];
var instanceTypes = data[6];
var instanceTypesLen = instanceTypes === EMPTY_PLACEHOLDER ? 0 : instanceTypes.length;
var instanceTypesLen = 0 === instanceTypes ? 0 : instanceTypes.length;
var rootIndex = instances[instances.length - 1];
var normalObjectCount = instances.length - instanceTypesLen;
if ("number" !== typeof rootIndex) rootIndex = 0; else {
Expand Down Expand Up @@ -46171,8 +46175,8 @@
var klassLayout = classes[i];
if ("string" !== typeof klassLayout) {
true;
if ("function" === typeof klassLayout[CLASS_TYPE]) throw new Error("Can not deserialize the same JSON data again.");
var _type5 = klassLayout[CLASS_TYPE];
if ("function" === typeof klassLayout[0]) throw new Error("Can not deserialize the same JSON data again.");
var _type5 = klassLayout[0];
doLookupClass(classFinder, _type5, klassLayout, CLASS_TYPE, silent, customFinder);
} else doLookupClass(classFinder, klassLayout, classes, i, silent, customFinder);
}
Expand All @@ -46183,7 +46187,7 @@
var classes = data[3];
for (var i = 0; i < masks.length; ++i) {
var mask = masks[i];
mask[MASK_CLASS] = classes[mask[MASK_CLASS]];
mask[0] = classes[mask[0]];
}
}
}
Expand Down Expand Up @@ -46219,7 +46223,7 @@
preprocessed = version.preprocessed;
version = version.version;
}
if (version < SUPPORT_MIN_FORMAT_VERSION) throw new Error(cc.debug.getError(5304, version));
if (version < 1) throw new Error(cc.debug.getError(5304, version));
options._version = version;
options.result = details;
data[0] = options;
Expand All @@ -46242,7 +46246,7 @@
this.version = version;
};
function unpackJSONs(data, classFinder) {
if (data[0] < SUPPORT_MIN_FORMAT_VERSION) throw new Error(cc.debug.getError(5304, data[0]));
if (data[0] < 1) throw new Error(cc.debug.getError(5304, data[0]));
lookupClasses(data, true, classFinder);
cacheMasks(data);
var version = new FileInfo(data[0]);
Expand All @@ -46255,7 +46259,7 @@
return sections;
}
function packCustomObjData(type, data, hasNativeDep) {
return [ SUPPORT_MIN_FORMAT_VERSION, EMPTY_PLACEHOLDER, EMPTY_PLACEHOLDER, [ type ], EMPTY_PLACEHOLDER, hasNativeDep ? [ data, -1 ] : [ data ], [ 0 ], EMPTY_PLACEHOLDER, [], [], [] ];
return [ 1, EMPTY_PLACEHOLDER, EMPTY_PLACEHOLDER, [ type ], EMPTY_PLACEHOLDER, hasNativeDep ? [ data, -1 ] : [ data ], [ 0 ], EMPTY_PLACEHOLDER, [], [], [] ];
}
function hasNativeDep(data) {
var instances = data[5];
Expand Down Expand Up @@ -50454,6 +50458,9 @@
}
} else horizontalKernings.length = 0;
};
_proto._clearHorizontalKerning = function _clearHorizontalKerning() {
_horizontalKernings.length = 0;
};
_proto._multilineTextWrap = function _multilineTextWrap(nextTokenFunc) {
var textLen = _string.length;
var lineIndex = 0;
Expand Down Expand Up @@ -51271,7 +51278,9 @@
_isBold && (fontDesc = "bold " + fontDesc);
return fontDesc;
};
_proto2._computeHorizontalKerningForText = function _computeHorizontalKerningForText() {};
_proto2._computeHorizontalKerningForText = function _computeHorizontalKerningForText() {
this._clearHorizontalKerning();
};
_proto2._determineRect = function _determineRect(tempRect) {
return false;
};
Expand Down Expand Up @@ -56928,7 +56937,7 @@
"use strict";
cc.sp = {
inited: false,
version: "2.3.0",
version: "2.4.0",
MAX_MULTITEXTURE_NUM: -1,
autoSwitchMaterial: true,
allowDynamicAtlas: true,
Expand Down
2 changes: 1 addition & 1 deletion engine/cocos2d/core/sp/sp.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cc.sp = {
/**
* 版本号
*/
version: "2.3.0",
version: "2.4.0",

/**
* 最大纹理插槽数量
Expand Down
2 changes: 1 addition & 1 deletion extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "enhance-kit",
"version": "2.3.0",
"version": "2.4.0",
"description": "This extension provides support for cocos enhance kit.",
"author": "SmallMain",
"main": "main.js",
Expand Down
2 changes: 1 addition & 1 deletion jsb-adapter/VERSION.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.0
2.4.0

0 comments on commit d281210

Please sign in to comment.