feat(任务): 添加任务获取记录与显示功能

- 新增 UpdateMissionGet 事件用于通知任务卡牌获取
- 在 MissionCardComp 中派发获取事件,传递卡牌信息
- 在 MissionGetsComp 中监听事件并更新获取记录显示
- 实现重复获取时数量累加显示
- 添加任务开始时清理旧记录的功能
This commit is contained in:
panw
2026-01-27 16:51:53 +08:00
parent b869e1c33c
commit fbbc04b4c4
3 changed files with 62 additions and 8 deletions

View File

@@ -471,6 +471,13 @@ export class MissionCardComp extends CCComp {
break;
}
// 记录已获取的卡牌
oops.message.dispatchEvent(GameEvent.UpdateMissionGet, {
uuid: selectedData.uuid,
icon: selectedData.icon,
type: selectedData.type
});
this.close();
})
.start();