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,300 @@
|
||||
{
|
||||
"layerId": 405,
|
||||
"name": "MainButton_Layer",
|
||||
"bucket": "room",
|
||||
"backgroundNodeId": null,
|
||||
"groups": [
|
||||
{
|
||||
"groupId": 21,
|
||||
"nodeIds": [
|
||||
152,
|
||||
153,
|
||||
3115,
|
||||
3116,
|
||||
3118,
|
||||
3119
|
||||
]
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"id": 152,
|
||||
"name": "录音按钮",
|
||||
"kind": "sprite",
|
||||
"position": {
|
||||
"x": 576,
|
||||
"y": -214
|
||||
},
|
||||
"size": {
|
||||
"width": 88,
|
||||
"height": 88
|
||||
},
|
||||
"siblingIndex": 1,
|
||||
"widget": {
|
||||
"horizontal": "right",
|
||||
"right": 20
|
||||
},
|
||||
"flags": {
|
||||
"stretch": false,
|
||||
"offscreen": false,
|
||||
"animation": false,
|
||||
"frameIndexOutOfRange": false
|
||||
},
|
||||
"legacy": {
|
||||
"objectId": 152,
|
||||
"imageFileId": 68,
|
||||
"frameIndex": 2,
|
||||
"frameStyle": 0,
|
||||
"groupId": 21,
|
||||
"voiceFileId": 0,
|
||||
"timerInterval": 0,
|
||||
"left": 1172,
|
||||
"top": 530,
|
||||
"events": [
|
||||
"mousedown",
|
||||
"mouseup",
|
||||
"mousemove",
|
||||
"ontimer"
|
||||
]
|
||||
},
|
||||
"sprite": {
|
||||
"frame": "atlas-room/00068_2.png",
|
||||
"type": "simple",
|
||||
"frameSet": {
|
||||
"prefix": "atlas-room/00068",
|
||||
"count": 2,
|
||||
"pad": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 153,
|
||||
"name": "消息按钮",
|
||||
"kind": "sprite",
|
||||
"position": {
|
||||
"x": 576,
|
||||
"y": -311
|
||||
},
|
||||
"size": {
|
||||
"width": 88,
|
||||
"height": 88
|
||||
},
|
||||
"siblingIndex": 2,
|
||||
"widget": {
|
||||
"horizontal": "right",
|
||||
"right": 20
|
||||
},
|
||||
"flags": {
|
||||
"stretch": false,
|
||||
"offscreen": false,
|
||||
"animation": false,
|
||||
"frameIndexOutOfRange": false
|
||||
},
|
||||
"legacy": {
|
||||
"objectId": 153,
|
||||
"imageFileId": 68,
|
||||
"frameIndex": 1,
|
||||
"frameStyle": 0,
|
||||
"groupId": 21,
|
||||
"voiceFileId": 0,
|
||||
"timerInterval": 0,
|
||||
"left": 1172,
|
||||
"top": 627,
|
||||
"events": [
|
||||
"mousedown",
|
||||
"mouseup",
|
||||
"mousemove",
|
||||
"ontimer"
|
||||
]
|
||||
},
|
||||
"sprite": {
|
||||
"frame": "atlas-room/00068_1.png",
|
||||
"type": "simple",
|
||||
"frameSet": {
|
||||
"prefix": "atlas-room/00068",
|
||||
"count": 2,
|
||||
"pad": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3115,
|
||||
"name": "Spirit3115",
|
||||
"kind": "sprite",
|
||||
"position": {
|
||||
"x": 505,
|
||||
"y": -264
|
||||
},
|
||||
"size": {
|
||||
"width": 102,
|
||||
"height": 64
|
||||
},
|
||||
"siblingIndex": 3,
|
||||
"widget": {
|
||||
"horizontal": "right",
|
||||
"right": 84
|
||||
},
|
||||
"flags": {
|
||||
"stretch": false,
|
||||
"offscreen": false,
|
||||
"animation": false,
|
||||
"frameIndexOutOfRange": false
|
||||
},
|
||||
"legacy": {
|
||||
"objectId": 3115,
|
||||
"imageFileId": 343,
|
||||
"frameIndex": 4,
|
||||
"frameStyle": 0,
|
||||
"groupId": 21,
|
||||
"voiceFileId": 0,
|
||||
"timerInterval": 0,
|
||||
"left": 1094,
|
||||
"top": 592,
|
||||
"events": [
|
||||
"mousedown",
|
||||
"mouseup",
|
||||
"mousemove",
|
||||
"ontimer"
|
||||
]
|
||||
},
|
||||
"sprite": {
|
||||
"frame": "atlas-room/00343.png",
|
||||
"type": "simple"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3116,
|
||||
"name": "Spirit3116",
|
||||
"kind": "label",
|
||||
"position": {
|
||||
"x": 320,
|
||||
"y": -433.5
|
||||
},
|
||||
"size": {
|
||||
"width": 72,
|
||||
"height": 21
|
||||
},
|
||||
"siblingIndex": 4,
|
||||
"widget": {
|
||||
"horizontal": "center",
|
||||
"horizontalCenter": 320
|
||||
},
|
||||
"flags": {
|
||||
"stretch": false,
|
||||
"offscreen": true,
|
||||
"animation": false,
|
||||
"frameIndexOutOfRange": false
|
||||
},
|
||||
"legacy": {
|
||||
"objectId": 3116,
|
||||
"imageFileId": 0,
|
||||
"frameIndex": 0,
|
||||
"frameStyle": 0,
|
||||
"groupId": 21,
|
||||
"voiceFileId": 0,
|
||||
"timerInterval": 0,
|
||||
"left": 924,
|
||||
"top": 783,
|
||||
"events": [
|
||||
"mousedown",
|
||||
"mouseup",
|
||||
"mousemove",
|
||||
"ontimer"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3118,
|
||||
"name": "Spirit3118",
|
||||
"kind": "sprite",
|
||||
"position": {
|
||||
"x": 605.5,
|
||||
"y": -273.5
|
||||
},
|
||||
"size": {
|
||||
"width": 27,
|
||||
"height": 27
|
||||
},
|
||||
"siblingIndex": 5,
|
||||
"widget": {
|
||||
"horizontal": "right",
|
||||
"right": 21
|
||||
},
|
||||
"flags": {
|
||||
"stretch": false,
|
||||
"offscreen": false,
|
||||
"animation": false,
|
||||
"frameIndexOutOfRange": false
|
||||
},
|
||||
"legacy": {
|
||||
"objectId": 3118,
|
||||
"imageFileId": 342,
|
||||
"frameIndex": 0,
|
||||
"frameStyle": 0,
|
||||
"groupId": 21,
|
||||
"voiceFileId": 0,
|
||||
"timerInterval": 0,
|
||||
"left": 1232,
|
||||
"top": 620,
|
||||
"events": [
|
||||
"mousedown",
|
||||
"mouseup",
|
||||
"mousemove",
|
||||
"ontimer"
|
||||
]
|
||||
},
|
||||
"sprite": {
|
||||
"frame": "atlas-room/00342.png",
|
||||
"type": "sliced",
|
||||
"slice": {
|
||||
"left": 13,
|
||||
"right": 13,
|
||||
"top": 13,
|
||||
"bottom": 13
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3119,
|
||||
"name": "Spirit3119",
|
||||
"kind": "label",
|
||||
"position": {
|
||||
"x": 605,
|
||||
"y": -272.5
|
||||
},
|
||||
"size": {
|
||||
"width": 18,
|
||||
"height": 21
|
||||
},
|
||||
"siblingIndex": 6,
|
||||
"widget": {
|
||||
"horizontal": "right",
|
||||
"right": 26
|
||||
},
|
||||
"flags": {
|
||||
"stretch": false,
|
||||
"offscreen": false,
|
||||
"animation": false,
|
||||
"frameIndexOutOfRange": false
|
||||
},
|
||||
"legacy": {
|
||||
"objectId": 3119,
|
||||
"imageFileId": 0,
|
||||
"frameIndex": 0,
|
||||
"frameStyle": 0,
|
||||
"groupId": 21,
|
||||
"voiceFileId": 0,
|
||||
"timerInterval": 0,
|
||||
"left": 1236,
|
||||
"top": 622,
|
||||
"events": [
|
||||
"mousedown",
|
||||
"mouseup",
|
||||
"mousemove",
|
||||
"ontimer"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"warnings": []
|
||||
}
|
||||
Reference in New Issue
Block a user