diff --git a/index.js b/index.js index b8f5b90..7b39b84 100644 --- a/index.js +++ b/index.js @@ -1486,6 +1486,15 @@ jQuery(async () => { clearThoughtBasedExpressionsCache(); setTimeout(() => onThoughtBasedExpressionsChatChanged(), 0); }); + + eventSource.on(event_types.MESSAGE_SWIPE_DELETED, () => { + if (!extensionSettings.enabled) { + return; + } + + clearThoughtBasedExpressionsCache(); + setTimeout(() => onThoughtBasedExpressionsChatChanged(), 0); + }); } catch (error) { console.error('[RPG Companion] Event registration failed:', error); throw error; // This is critical - can't continue without events diff --git a/src/i18n/zh-cn.json b/src/i18n/zh-cn.json index 8c7e541..af7e3da 100644 --- a/src/i18n/zh-cn.json +++ b/src/i18n/zh-cn.json @@ -36,6 +36,12 @@ "template.settingsModal.display.showInfoBoxNote": "显示位置、时间、天气和最近事件。", "template.settingsModal.display.showPresentCharacters": "显示在场角色", "template.settingsModal.display.showPresentCharactersNote": "显示角色肖像及其当前想法和状态。", + "template.settingsModal.display.showBelowChatPresentCharacters": "显示聊天下方的在场角色", + "template.settingsModal.display.showBelowChatPresentCharactersNote": "在聊天下方显示紧凑的在场角色面板。", + "template.settingsModal.display.thoughtBasedExpressions": "基于想法的表情", + "template.settingsModal.display.thoughtBasedExpressionsNote": "使用 SillyTavern Character Expressions 对聊天下方面板中每个在场角色的想法进行分类。Token 用量可能会因所选的分类 API 而增加。", + "template.settingsModal.display.hideDefaultExpressionDisplay": "隐藏默认表情显示", + "template.settingsModal.display.hideDefaultExpressionDisplayNote": "隐藏 SillyTavern 内置的角色表情显示。", "template.settingsModal.display.narratorMode": "旁白模式", "template.settingsModal.display.narratorModeNote": "使用角色卡作为旁白。根据上下文推断角色,而非使用固定的角色引用。", "template.settingsModal.display.showInventory": "显示物品栏", @@ -46,6 +52,8 @@ "template.settingsModal.display.showLockIconsNote": "在跟踪器项目上显示锁定/解锁图标,以防止 AI 修改它们。", "template.settingsModal.display.showThoughtsInChat": "显示想法", "template.settingsModal.display.showThoughtsInChatNote": "将角色想法显示为其消息旁边的气泡。", + "template.settingsModal.display.showInlineThoughts": "在消息文本下方显示想法", + "template.settingsModal.display.showInlineThoughtsNote": "在默认角落想法气泡和显示在消息文本下方的想法卡片之间切换。", "template.settingsModal.display.alwaysShowThoughtBubble": "始终显示想法气泡", "template.settingsModal.display.alwaysShowThoughtBubbleNote": "自动展开想法气泡,无需先点击图标", "template.settingsModal.display.enableAnimations": "启用动画", @@ -482,4 +490,4 @@ "userStats.clickToEdit": "点击编辑", "quests.main.addQuestTitle": "添加主线任务", "quests.optional.addQuestTitle": "添加可选任务" -} \ No newline at end of file +}