diff --git a/AGENTS.md b/AGENTS.md index 2ca2ceb..87dc54d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -19,7 +19,7 @@ Git 历史采用 Conventional Commits,且摘要多为中文,例如 `feat: # Memory Context -# $CMEM mp-xieyingeng 2026-05-03 10:24pm GMT+8 +# $CMEM mp-xieyingeng 2026-05-03 10:36pm GMT+8 Legend: 🎯session 🔴bugfix 🟣feature 🔄refactor ✅change 🔵discovery ⚖️decision Format: ID TIME TYPE TITLE diff --git a/assets/prefabs/PageLevel.prefab b/assets/prefabs/PageLevel.prefab index 5c44281..2508963 100644 --- a/assets/prefabs/PageLevel.prefab +++ b/assets/prefabs/PageLevel.prefab @@ -744,7 +744,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": -4.854, - "y": -3.284, + "y": 0.844, "z": 0 }, "_lrot": { @@ -785,7 +785,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 900, - "height": 450 + "height": 430 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -1051,7 +1051,7 @@ "node": { "__id__": 25 }, - "_enabled": false, + "_enabled": true, "__prefab": { "__id__": 41 }, @@ -1359,7 +1359,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 900, - "height": 450 + "height": 430 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -1625,7 +1625,7 @@ "node": { "__id__": 49 }, - "_enabled": false, + "_enabled": true, "__prefab": { "__id__": 65 }, diff --git a/assets/prefabs/PageLevel.ts b/assets/prefabs/PageLevel.ts index c863a37..0c74407 100644 --- a/assets/prefabs/PageLevel.ts +++ b/assets/prefabs/PageLevel.ts @@ -1222,19 +1222,34 @@ export class PageLevel extends BaseView { // 播放成功音效 this.playSuccessSound(); - // 通关后根据 punchline 字数重建包袱答案块 - this.setPunchline(this._currentConfig?.punchline ?? null); + const punchline = this.getValidPunchline(this._currentConfig?.punchline ?? null); + if (punchline) { + // 通关后根据 punchline 字数重建包袱答案块 + this.setPunchline(punchline); + } else { + this.hidePunchline(); + } const levelId = this._currentConfig?.id ?? ''; const timeSpent = Math.max(0, Math.round((Date.now() - this._levelStartTime) / 1000)); this.reportLevelCompleted(levelId, timeSpent); - await this.delay(PageLevel.PASS_MODAL_DELAY_MS); + if (punchline) { + await this.delay(PageLevel.PASS_MODAL_DELAY_MS); + } // 显示通关弹窗 this._showPassModal(); } + private getValidPunchline(punchline: string | null): string | null { + if (!punchline?.trim()) { + return null; + } + + return punchline; + } + /** * 上报通关并获取下一关数据 */ diff --git a/assets/resources/images/pageLevel/PicLayer.png b/assets/resources/images/pageLevel/PicLayer.png index 0e27e0f..a3694ad 100644 Binary files a/assets/resources/images/pageLevel/PicLayer.png and b/assets/resources/images/pageLevel/PicLayer.png differ diff --git a/assets/resources/images/pageLevel/PicLayer.png.meta b/assets/resources/images/pageLevel/PicLayer.png.meta index 006ad7e..2af789d 100644 --- a/assets/resources/images/pageLevel/PicLayer.png.meta +++ b/assets/resources/images/pageLevel/PicLayer.png.meta @@ -49,10 +49,10 @@ "height": 1189, "rawWidth": 1190, "rawHeight": 1189, - "borderTop": 220, - "borderBottom": 220, - "borderLeft": 220, - "borderRight": 220, + "borderTop": 225, + "borderBottom": 225, + "borderLeft": 225, + "borderRight": 225, "packable": true, "pixelsToUnit": 100, "pivotX": 0.5,