fix: 修复关卡内图片圆角不正确的问题
This commit is contained in:
@@ -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
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 上报通关并获取下一关数据
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user