Add 'Always Show Thought Bubble' setting

- New setting in Display Options to auto-expand thought bubble
- When enabled, thought bubble displays immediately without clicking icon
- Checkbox added to settings modal with descriptive help text
- Default is off to maintain current behavior
This commit is contained in:
Spicy_Marinara
2025-11-06 10:20:45 +01:00
parent ce811018b3
commit 43bcd14311
4 changed files with 27 additions and 3 deletions
+1
View File
@@ -32,6 +32,7 @@ export const defaultSettings = {
showCharacterThoughts: true,
showInventory: true, // Show inventory section (v2 system)
showThoughtsInChat: true, // Show thoughts overlay in chat
alwaysShowThoughtBubble: false, // Auto-expand thought bubble without clicking icon
enableHtmlPrompt: false, // Enable immersive HTML prompt injection
enablePlotButtons: true, // Show plot progression buttons above chat input
panelPosition: 'right', // 'left', 'right', or 'top'
+10 -3
View File
@@ -978,9 +978,16 @@ export function createThoughtPanel($message, thoughtsArray) {
right: 'auto' // Clear any right positioning
});
// Initially hide the panel and show the icon
$thoughtPanel.hide();
$thoughtIcon.show();
// Check if always show bubble is enabled
if (extensionSettings.alwaysShowThoughtBubble) {
// Always show panel, hide icon
$thoughtPanel.show();
$thoughtIcon.hide();
} else {
// Initially hide the panel and show the icon
$thoughtPanel.hide();
$thoughtIcon.show();
}
// console.log('[RPG Companion] Thought panel created at:', { top, left });