joywayer
|
cb3bd54175
|
fix(scripts): final review Critical+Important fixes (Widget alignment, full readLayerXml, Label _string, atlas selection, hard-coded paths, exit code, dead code removal)
|
2026-09-02 09:11:51 +08:00 |
|
joywayer
|
950ba4581c
|
fix(scripts): emitPrefabJson rootNode._children 必须包含 group-X 节点 (Task 9 fix round 1)
|
2026-09-02 08:36:51 +08:00 |
|
joywayer
|
e8f4180483
|
feat(scripts): PoC 阶段 2 - Layer10_Protocol + Widget 锚定
computeWidgetAlignment(spirit) 简化版 (水平+垂直居中):
_alignFlags = 16 | 8
_horizontalCenter = x + w/2 - 640
_verticalCenter = 360 - (y + h/2)
emitPrefabJson 仅在 Spirit 父节点是 group (非 Layer 根) 时调用;
root / group-X envelope 沿用默认 _alignFlags=45 全屏铺满.
PoC 验证: Layer00010.xml Protol_Layer (group 37, 4 spirits)
生成 Protol_Layer.prefab — 6 Widget 节点 (1 root + 1 group-37 + 4 spirit),
4 spirit widget 全部 _alignFlags=24.
|
2026-09-02 08:35:03 +08:00 |
|
joywayer
|
9742509d32
|
feat(scripts): emitPrefabJson - 按 Login_Layer.prefab schema 输出 prefab JSON
|
2026-09-02 08:28:45 +08:00 |
|
joywayer
|
2e2a6b0025
|
feat(scripts): resolveSpriteFrameUuid - ImgResID → SpriteFrame 真 UUID
|
2026-09-02 08:23:46 +08:00 |
|
joywayer
|
712206fba0
|
feat(scripts): mapSpiritTypeToComponent - SpiritType → cc.* 组件映射(读 spirit-semantics.json)
|
2026-09-02 08:19:24 +08:00 |
|
joywayer
|
9fddab82d5
|
feat(scripts): buildGroupParents - BelongGroupID → group-X 父节点归类
|
2026-09-02 08:11:05 +08:00 |
|
joywayer
|
7f0bd17b9e
|
feat(scripts): computeLpos / computeContentSize - 锚点转换公式(实测验证)
|
2026-09-02 08:09:15 +08:00 |
|
joywayer
|
cfca336e98
|
feat(scripts): readLayerXml - UTF-8 解码 + Layer/Spirit 字段提取
|
2026-09-02 07:52:11 +08:00 |
|