feat: 移除不再使用的配置文件和更新组件,提升代码整洁性
- 删除 .claude/settings.local.json 配置文件,清理不必要的代码。 - 更新多个组件以引入音频资源,增强用户互动体验。 - 调整引导对话文本,确保信息准确性和一致性。 - 更新图像资源,提升视觉内容的准确性和一致性。
This commit is contained in:
1 parent
cf64e7ec50
commit
8ba36a4a1a
132 files changed
+546
-454
No files matched your search
@@ -105,7 +105,7 @@ const SunzhongshanReflectionScene1 = () => {
|
||||
const handleClueClick = (clueId: string, clueName: string) => {
|
||||
// 如果已收集,不重复收集
|
||||
if (isClueCollected(clueId)) {
|
||||
setSuccessAlertContent("该线索已收集");
|
||||
setSuccessAlertContent("该线索已收集!");
|
||||
setShowSuccessAlert(true);
|
||||
return;
|
||||
}
|
||||
@@ -125,7 +125,7 @@ const SunzhongshanReflectionScene1 = () => {
|
||||
duration: 1200,
|
||||
onComplete: () => {
|
||||
// 动画完成后的回调
|
||||
setSuccessAlertContent("获得该线索!快去线索簿查看详细信息吧!");
|
||||
setSuccessAlertContent("获得1条线索,已获得线索可在线索簿中查看!");
|
||||
setShowSuccessAlert(true);
|
||||
},
|
||||
});
|
||||
@@ -139,7 +139,7 @@ const SunzhongshanReflectionScene1 = () => {
|
||||
|
||||
// 如果线索1已收集,显示提示
|
||||
if (isClueCollected(clue1Id)) {
|
||||
setSuccessAlertContent("该线索已收集");
|
||||
setSuccessAlertContent("该线索已收集!");
|
||||
setShowSuccessAlert(true);
|
||||
return;
|
||||
}
|
||||
@@ -401,6 +401,11 @@ const SunzhongshanReflectionScene1 = () => {
|
||||
visible={showSuccessAlert}
|
||||
title="恭喜你!"
|
||||
content={successAlertContent}
|
||||
audioSrc={
|
||||
successAlertContent === "获得1条线索,已获得线索可在线索簿中查看!"
|
||||
? getPublicPath("audio/sunzhongshan/mp3_sunzhongshan_49.mp3")
|
||||
: undefined
|
||||
}
|
||||
onContinue={() => {
|
||||
setShowSuccessAlert(false);
|
||||
setSuccessAlertContent("");
|
||||
@@ -438,6 +443,7 @@ const SunzhongshanReflectionScene1 = () => {
|
||||
visible={showGuide}
|
||||
onContinue={handleGuideClose}
|
||||
zIndex={10000}
|
||||
audioSrc={getPublicPath("audio/sunzhongshan/mp3_sunzhongshan_48.mp3")}
|
||||
>
|
||||
同学你好,欢迎来到二十世纪初的上海。
|
||||
<br />
|
||||
@@ -506,7 +512,9 @@ const SunzhongshanReflectionScene1 = () => {
|
||||
<EndingOverlay
|
||||
visible={showCompleteGuide}
|
||||
text={`恭喜你完成场景一的探索!\n粤军总司令陈炯明与孙中山政见无法统一。1922年6月16日,陈炯明部将叶举率4000余人包围总统府,炮击孙中山住所粤秀楼。这一叛变行动使得北伐事业再次陷于停顿,第二次护法运动失败……\n请你走进场景二,继续探索吧!`}
|
||||
animationSpeed={200}
|
||||
onContinue={handleCompleteGuideClose}
|
||||
audioSrc={getPublicPath("audio/sunzhongshan/mp3_sunzhongshan_50.mp3")}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user