feat(任务): 添加任务获取记录与显示功能
- 新增 UpdateMissionGet 事件用于通知任务卡牌获取 - 在 MissionCardComp 中派发获取事件,传递卡牌信息 - 在 MissionGetsComp 中监听事件并更新获取记录显示 - 实现重复获取时数量累加显示 - 添加任务开始时清理旧记录的功能
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user