[engine] [cocos2d-x] [jsb-adapter] 适配引擎 v2.4.12 版本

This commit is contained in:
SmallMain
2023-10-30 22:32:32 +08:00
parent 2508616ad9
commit 0092eb9f05
787 changed files with 206249 additions and 422 deletions

View File

@@ -96,6 +96,7 @@ let ArmatureDisplay = cc.Class({
editor: CC_EDITOR && {
menu: 'i18n:MAIN_MENU.component.renderers/DragonBones',
inspector: 'packages://inspector/inspectors/comps/skeleton2d.js',
help: 'i18n:COMPONENT.help_url.dragonbones',
},
statics: {

View File

@@ -42,6 +42,10 @@
var _global = typeof window === 'undefined' ? global : window;
if (!CC_NATIVERENDERER) {
_global.dragonBones = require('./lib/dragonBones');
// HACK: can't share the global dragonBones between all cc sub modules on Taobao platform.
if (cc.sys.platform === cc.sys.TAOBAO || cc.sys.platform === cc.sys.TAOBAO_MINIGAME) {
dragonBones = _global.dragonBones;
}
}
if (_global.dragonBones !== undefined) {