feat(ui-migration): 转换 CLI 与全量产出
55 界面 / 991 节点 → 中间描述; 439 图 → 1306 张散图落入 atlas-* 目录。
产出前先跑重组校验; 每次转换清空产出目录(中间描述 + 各 atlas-{bucket})保证幂等。
bucket 未定的层告警并落入 atlas-unassigned(7 层/162 图/285 帧), 不静默归入 common。
10 条 FrameIndex 越界警告(已知源数据遗留问题)随产出落盘为 warnings.json。
散图已用 cocos-mcp-server 刷新导入, 1306 个 .meta 由编辑器生成并入库。
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,312 @@
|
||||
{
|
||||
"layerId": 22,
|
||||
"name": "Share_Layer",
|
||||
"bucket": "hall",
|
||||
"backgroundNodeId": 72,
|
||||
"groups": [
|
||||
{
|
||||
"groupId": 11,
|
||||
"nodeIds": [
|
||||
72,
|
||||
71,
|
||||
73,
|
||||
691,
|
||||
74,
|
||||
75
|
||||
]
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"id": 72,
|
||||
"name": "分享遮罩",
|
||||
"kind": "sprite",
|
||||
"position": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"size": {
|
||||
"width": 1280,
|
||||
"height": 720
|
||||
},
|
||||
"siblingIndex": 1,
|
||||
"widget": {
|
||||
"horizontal": "stretch",
|
||||
"vertical": "stretch",
|
||||
"left": 0,
|
||||
"right": 0,
|
||||
"top": 0,
|
||||
"bottom": 0
|
||||
},
|
||||
"flags": {
|
||||
"stretch": true,
|
||||
"offscreen": false,
|
||||
"animation": false,
|
||||
"frameIndexOutOfRange": false
|
||||
},
|
||||
"legacy": {
|
||||
"objectId": 72,
|
||||
"imageFileId": 11,
|
||||
"frameIndex": 0,
|
||||
"frameStyle": 0,
|
||||
"groupId": 11,
|
||||
"voiceFileId": 0,
|
||||
"timerInterval": 0,
|
||||
"left": 0,
|
||||
"top": 0,
|
||||
"events": [
|
||||
"mousedown",
|
||||
"mouseup",
|
||||
"mousemove",
|
||||
"ontimer"
|
||||
]
|
||||
},
|
||||
"sprite": {
|
||||
"frame": "atlas-common/00011.png",
|
||||
"type": "simple"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 71,
|
||||
"name": "分享背景",
|
||||
"kind": "sprite",
|
||||
"position": {
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
},
|
||||
"size": {
|
||||
"width": 725,
|
||||
"height": 482
|
||||
},
|
||||
"siblingIndex": 2,
|
||||
"widget": {
|
||||
"horizontal": "center",
|
||||
"horizontalCenter": 0.5
|
||||
},
|
||||
"flags": {
|
||||
"stretch": false,
|
||||
"offscreen": false,
|
||||
"animation": false,
|
||||
"frameIndexOutOfRange": false
|
||||
},
|
||||
"legacy": {
|
||||
"objectId": 71,
|
||||
"imageFileId": 345,
|
||||
"frameIndex": 0,
|
||||
"frameStyle": 0,
|
||||
"groupId": 11,
|
||||
"voiceFileId": 0,
|
||||
"timerInterval": 0,
|
||||
"left": 278,
|
||||
"top": 119,
|
||||
"events": [
|
||||
"mousedown",
|
||||
"mouseup",
|
||||
"mousemove",
|
||||
"ontimer"
|
||||
]
|
||||
},
|
||||
"sprite": {
|
||||
"frame": "atlas-hall/00345.png",
|
||||
"type": "sliced",
|
||||
"slice": {
|
||||
"left": 313,
|
||||
"right": 313,
|
||||
"top": 134,
|
||||
"bottom": 135
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 73,
|
||||
"name": "分享标题",
|
||||
"kind": "sprite",
|
||||
"position": {
|
||||
"x": 61,
|
||||
"y": 518
|
||||
},
|
||||
"size": {
|
||||
"width": 200,
|
||||
"height": 80
|
||||
},
|
||||
"siblingIndex": 3,
|
||||
"widget": {
|
||||
"horizontal": "center",
|
||||
"horizontalCenter": 61
|
||||
},
|
||||
"flags": {
|
||||
"stretch": false,
|
||||
"offscreen": true,
|
||||
"animation": false,
|
||||
"frameIndexOutOfRange": false
|
||||
},
|
||||
"legacy": {
|
||||
"objectId": 73,
|
||||
"imageFileId": 48,
|
||||
"frameIndex": 0,
|
||||
"frameStyle": 0,
|
||||
"groupId": 11,
|
||||
"voiceFileId": 0,
|
||||
"timerInterval": 0,
|
||||
"left": 601,
|
||||
"top": -198,
|
||||
"events": [
|
||||
"mousedown",
|
||||
"mouseup",
|
||||
"mousemove",
|
||||
"ontimer"
|
||||
]
|
||||
},
|
||||
"sprite": {
|
||||
"frame": "atlas-common/00048.png",
|
||||
"type": "simple"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 691,
|
||||
"name": "Spirit691",
|
||||
"kind": "sprite",
|
||||
"position": {
|
||||
"x": 150,
|
||||
"y": 504
|
||||
},
|
||||
"size": {
|
||||
"width": 264,
|
||||
"height": 80
|
||||
},
|
||||
"siblingIndex": 4,
|
||||
"widget": {
|
||||
"horizontal": "center",
|
||||
"horizontalCenter": 150
|
||||
},
|
||||
"flags": {
|
||||
"stretch": false,
|
||||
"offscreen": true,
|
||||
"animation": false,
|
||||
"frameIndexOutOfRange": false
|
||||
},
|
||||
"legacy": {
|
||||
"objectId": 691,
|
||||
"imageFileId": 50,
|
||||
"frameIndex": 1,
|
||||
"frameStyle": 0,
|
||||
"groupId": 11,
|
||||
"voiceFileId": 0,
|
||||
"timerInterval": 0,
|
||||
"left": 658,
|
||||
"top": -184,
|
||||
"events": [
|
||||
"mousedown",
|
||||
"mouseup",
|
||||
"mousemove",
|
||||
"ontimer"
|
||||
]
|
||||
},
|
||||
"sprite": {
|
||||
"frame": "atlas-hall/00050.png",
|
||||
"type": "simple"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 74,
|
||||
"name": "分享微信好友",
|
||||
"kind": "sprite",
|
||||
"position": {
|
||||
"x": -239,
|
||||
"y": -128
|
||||
},
|
||||
"size": {
|
||||
"width": 200,
|
||||
"height": 192
|
||||
},
|
||||
"siblingIndex": 5,
|
||||
"widget": {
|
||||
"horizontal": "center",
|
||||
"horizontalCenter": -239
|
||||
},
|
||||
"flags": {
|
||||
"stretch": false,
|
||||
"offscreen": false,
|
||||
"animation": false,
|
||||
"frameIndexOutOfRange": false
|
||||
},
|
||||
"legacy": {
|
||||
"objectId": 74,
|
||||
"imageFileId": 51,
|
||||
"frameIndex": 1,
|
||||
"frameStyle": 0,
|
||||
"groupId": 11,
|
||||
"voiceFileId": 0,
|
||||
"timerInterval": 0,
|
||||
"left": 301,
|
||||
"top": 392,
|
||||
"events": [
|
||||
"mousedown",
|
||||
"mouseup",
|
||||
"mousemove",
|
||||
"ontimer"
|
||||
]
|
||||
},
|
||||
"sprite": {
|
||||
"frame": "atlas-hall/00051_1.png",
|
||||
"type": "simple",
|
||||
"frameSet": {
|
||||
"prefix": "atlas-hall/00051",
|
||||
"count": 2,
|
||||
"pad": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 75,
|
||||
"name": "分享朋友圈",
|
||||
"kind": "sprite",
|
||||
"position": {
|
||||
"x": -25,
|
||||
"y": -128
|
||||
},
|
||||
"size": {
|
||||
"width": 200,
|
||||
"height": 192
|
||||
},
|
||||
"siblingIndex": 6,
|
||||
"widget": {
|
||||
"horizontal": "center",
|
||||
"horizontalCenter": -25
|
||||
},
|
||||
"flags": {
|
||||
"stretch": false,
|
||||
"offscreen": false,
|
||||
"animation": false,
|
||||
"frameIndexOutOfRange": false
|
||||
},
|
||||
"legacy": {
|
||||
"objectId": 75,
|
||||
"imageFileId": 51,
|
||||
"frameIndex": 2,
|
||||
"frameStyle": 0,
|
||||
"groupId": 11,
|
||||
"voiceFileId": 0,
|
||||
"timerInterval": 0,
|
||||
"left": 515,
|
||||
"top": 392,
|
||||
"events": [
|
||||
"mousedown",
|
||||
"mouseup",
|
||||
"mousemove",
|
||||
"ontimer"
|
||||
]
|
||||
},
|
||||
"sprite": {
|
||||
"frame": "atlas-hall/00051_2.png",
|
||||
"type": "simple",
|
||||
"frameSet": {
|
||||
"prefix": "atlas-hall/00051",
|
||||
"count": 2,
|
||||
"pad": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"warnings": []
|
||||
}
|
||||
Reference in New Issue
Block a user