Files
刘宇飞 d393302388 Complete Cocos Creator port with level bundles, themes, and tooling.
Adds level prefabs, theme assets, audio, extensions, and deployment scripts for the Unity WebGL migration.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 15:30:58 +08:00

36 lines
943 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* GameController Inspector Footer — 关卡切换 + SwitchLevel
*/
export const template = `
<div class="gc-footer">
<ui-label class="hint">预览 ▶ 后可用inputLevel 填 ID 或点上一关/下一关</ui-label>
<div class="row level-nav">
<ui-button class="btn-prev">上一关</ui-button>
<ui-button class="btn-next">下一关</ui-button>
</div>
<ui-button class="btn-switch">SwitchLevel</ui-button>
</div>
`;
export const style = `
.gc-footer { margin-top: 6px; }
.gc-footer .hint { opacity: 0.75; font-size: 11px; margin-bottom: 6px; display: block; }
.gc-footer .row { display: flex; gap: 4px; margin-bottom: 6px; }
.gc-footer .row ui-button { flex: 1; }
.gc-footer .btn-switch { width: 100%; }
`;
export const $ = {
hint: '.hint',
btnPrev: '.btn-prev',
btnNext: '.btn-next',
btnSwitch: '.btn-switch',
};
export function update(dump: unknown) {
void dump;
}
export function ready() {}