Add customizable prompts editor and reorganize settings panel

- Reorganized settings: moved Auto-update, Narrator Mode, and Debug Mode to Advanced section
- Added Customize Prompts button with comprehensive prompts editor modal
- Implemented 7 customizable AI prompts: HTML, plot progression (random/natural), avatar generation, tracker instructions, tracker continuation, and combat narrative
- Added individual and bulk restore to defaults functionality
- Integrated custom prompts across generation modules (plotProgression, promptBuilder, encounterPrompts)
- Auto-update toggle now disabled when not in Separate generation mode
- Merged XML/Markdown tracker instructions into unified prompt
This commit is contained in:
Spicy_Marinara
2025-12-29 14:41:12 +01:00
parent 0b5bca56eb
commit 474e3ce963
8 changed files with 467 additions and 92 deletions
+9
View File
@@ -336,15 +336,24 @@ export function updateGenerationModeUI() {
$('#rpg-manual-update').hide();
$('#rpg-external-api-settings').slideUp(200);
$('#rpg-separate-mode-settings').slideUp(200);
// Disable auto-update toggle (not applicable in together mode)
$('#rpg-toggle-auto-update').prop('disabled', true);
$('#rpg-auto-update-container').css('opacity', '0.5');
} else if (extensionSettings.generationMode === 'separate') {
// In "separate" mode, manual update button is visible
$('#rpg-manual-update').show();
$('#rpg-external-api-settings').slideUp(200);
$('#rpg-separate-mode-settings').slideDown(200);
// Enable auto-update toggle (only works in separate mode)
$('#rpg-toggle-auto-update').prop('disabled', false);
$('#rpg-auto-update-container').css('opacity', '1');
} else if (extensionSettings.generationMode === 'external') {
// In "external" mode, manual update button is visible AND external settings are shown
$('#rpg-manual-update').show();
$('#rpg-external-api-settings').slideDown(200);
$('#rpg-separate-mode-settings').slideUp(200);
// Disable auto-update toggle (not applicable in external mode)
$('#rpg-toggle-auto-update').prop('disabled', true);
$('#rpg-auto-update-container').css('opacity', '0.5');
}
}