v2.1: Add dynamic weather effects, clothing inventory, and bug fixes

Features:
- Add dynamic weather effects system (snow, rain, mist, sunshine, storm, wind, blizzard)
- Add separate Clothing tab in inventory system
- Weather effects auto-update based on Info Box weather field
- Combined effects for storm (rain+lightning) and blizzard (snow+wind)

Improvements:
- Settings migration system for automatic feature enablement
- Weather effects positioned behind chat interface (z-index: 1)
- Dynamic weather enabled by default for new users

Bug Fixes:
- Fix tab visibility issues (disabled tabs now properly hide)
- Fix theme-aware borders (remove hardcoded blue colors)
- Fix double scrollbar in Edit Trackers window
- Fix scroll position jumping when editing Present Characters
- Fix dynamic weather toggle hiding issue

Technical:
- Update inventory schema to v2.1 with clothing field
- Add automatic migration for existing v2 inventories
- Update parsers and prompts to handle clothing separately
- Add translations (EN/ZH-TW) for new features
This commit is contained in:
Spicy_Marinara
2026-01-02 13:58:43 +01:00
parent ddd59d124e
commit 62ed7ffb18
22 changed files with 1035 additions and 88 deletions
+28 -4
View File
@@ -98,6 +98,15 @@
<span class="rpg-toggle-text" data-i18n-key="template.mainPanel.snowflakesEffect">Snowflakes Effect</span>
</label>
</div>
<!-- Dynamic Weather Toggle -->
<div class="rpg-toggle-container rpg-feature-col" id="rpg-dynamic-weather-toggle-wrapper">
<label class="rpg-toggle-label" title="Dynamic Weather Effects">
<input type="checkbox" id="rpg-toggle-dynamic-weather">
<i class="fa-solid fa-cloud-sun-rain"></i>
<span class="rpg-toggle-text" data-i18n-key="template.mainPanel.dynamicWeatherEffects">Dynamic Weather</span>
</label>
</div>
</div>
<!-- Manual Update Button -->
@@ -293,6 +302,11 @@
<span data-i18n-key="template.settingsModal.display.showSnowflakesToggle">Show Snowflakes Effect</span>
</label>
<label class="checkbox_label">
<input type="checkbox" id="rpg-toggle-show-dynamic-weather-toggle" />
<span data-i18n-key="template.settingsModal.display.showDynamicWeatherToggle">Show Dynamic Weather Effects</span>
</label>
<label class="checkbox_label">
<input type="checkbox" id="rpg-toggle-plot-buttons" />
<span data-i18n-key="template.settingsModal.display.showPlotProgressionButtons">Show Plot
@@ -672,10 +686,20 @@
</div>
<footer class="rpg-settings-popup-footer">
<button id="rpg-editor-reset" class="rpg-btn-secondary" type="button">
<i class="fa-solid fa-rotate-left"></i> <span
data-i18n-key="template.trackerEditorModal.buttons.reset">Reset to Defaults</span>
</button>
<div class="rpg-footer-left">
<button id="rpg-editor-reset" class="rpg-btn-secondary" type="button">
<i class="fa-solid fa-rotate-left"></i> <span
data-i18n-key="template.trackerEditorModal.buttons.reset">Reset to Defaults</span>
</button>
<button id="rpg-editor-export" class="rpg-btn-secondary" type="button">
<i class="fa-solid fa-file-export"></i> <span
data-i18n-key="template.trackerEditorModal.buttons.export">Export Preset</span>
</button>
<button id="rpg-editor-import" class="rpg-btn-secondary" type="button">
<i class="fa-solid fa-file-import"></i> <span
data-i18n-key="template.trackerEditorModal.buttons.import">Import Preset</span>
</button>
</div>
<div class="rpg-footer-right">
<button id="rpg-editor-cancel" class="rpg-btn-secondary" type="button"
data-i18n-key="template.trackerEditorModal.buttons.cancel">Cancel</button>