fix: 修复关卡内图片圆角不正确的问题

This commit is contained in:
richarjiang
2026-05-03 22:40:24 +08:00
parent c04bde38a3
commit b288c0bc8f
5 changed files with 28 additions and 13 deletions

View File

@@ -19,7 +19,7 @@ Git 历史采用 Conventional Commits且摘要多为中文例如 `feat:
<claude-mem-context>
# 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

View File

@@ -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
},

View File

@@ -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;
}
/**
* 上报通关并获取下一关数据
*/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 311 KiB

View File

@@ -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,