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
+35
View File
@@ -4098,6 +4098,41 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
gap: 0.5em;
}
/* Prompts Editor Styles */
.rpg-prompt-editor-section {
margin-bottom: 24px;
padding-bottom: 24px;
border-bottom: 1px solid var(--rpg-border);
}
.rpg-prompt-editor-section:last-child {
border-bottom: none;
}
.rpg-prompt-textarea {
width: 100%;
padding: 10px;
border-radius: 4px;
border: 1px solid var(--SmartThemeBorderColor);
background: var(--SmartThemeBlurTintColor);
color: var(--SmartThemeBodyColor);
font-family: 'Courier New', monospace;
font-size: 12px;
resize: vertical;
line-height: 1.5;
box-sizing: border-box;
}
.rpg-prompt-textarea:focus {
outline: none;
border-color: var(--rpg-highlight);
box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.2);
}
.rpg-restore-prompt-btn {
font-size: 0.9em;
}
/* Editor buttons */
.rpg-btn-primary,
.rpg-btn-secondary,