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:
@@ -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'
|
||||
|
||||
@@ -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 });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user