同步主站 Cocos 当前工程:关卡资源、运行脚本与打包工具。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-12 14:40:34 +08:00
parent ae75fce80b
commit fac515a669
5609 changed files with 27744634 additions and 5653 deletions

View File

@@ -164,8 +164,10 @@ function parseTilesFromNodes(objs, projectPath) {
function mergeMapSources(mapData, fromNodes) {
const md = mapData || { ground: {}, border: {}, theme: null, levelID: 0 };
const nodes = fromNodes || { ground: {}, border: {} };
const ground = Object.keys(nodes.ground).length ? nodes.ground : md.ground || {};
const border = Object.keys(nodes.border).length ? nodes.border : md.border || {};
// LevelMapData 是烘焙权威(含 JumpBlock / kuai11。节点贴图 UUID 对不上时
// 会被收成 Baseblock / WallBlock不能盖过 JSON。
const ground = Object.keys(md.ground || {}).length ? md.ground : (nodes.ground || {});
const border = Object.keys(md.border || {}).length ? md.border : (nodes.border || {});
return {
levelID: md.levelID || 0,
ground,

View File

@@ -75,7 +75,8 @@ exports.style = `
}
.tc-preview-card ui-label { font-size:11px; }
.tc-preview-card ui-input { width:100%; }
.tc-preview-card .tc-preview { width:100%; height:80px; }
.tc-preview-card .tc-preview { width:100%; height:128px; }
.tc-preview-card .tc-preview img { image-rendering: auto; }
.tc-section { font-weight:bold; margin:12px 0 8px; font-size:11px; color:var(--color-normal-contrast-weaken); }
.tc-status { padding:6px 8px; border-top:1px solid var(--color-normal-border); font-size:11px; color:var(--color-normal-contrast-weaken); }
`;