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
+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 });