v3.5.0: Weather effects improvements and dice roll fixes
- Refactor weather effects toggles to radio buttons in settings - Replace weatherEffectsForeground with weatherBackground/weatherForeground - Add Background/Foreground position options as radio toggles - Remove weather foreground toggle from main panel - Fix dice roll to work independently of RPG attributes - Dice rolls now sent regardless of attribute settings - Adjust prompt wording based on whether attributes are enabled - Improve History Persistence UI styling - Update input/select CSS to match tracker editor - Fix alignment issues - Add theme-based radio button styling - Radio buttons now use theme colors instead of default blue - Support for all themes (default, sci-fi, fantasy, cyberpunk, custom) - Update weather effects z-index logic for both modes - Bump version to v3.5.0
This commit is contained in:
@@ -270,9 +270,14 @@ export function updateWeatherEffect() {
|
||||
}
|
||||
|
||||
if (weatherContainer) {
|
||||
// Apply foreground z-index if experimental setting is enabled
|
||||
if (extensionSettings.weatherEffectsForeground) {
|
||||
weatherContainer.style.zIndex = '9998';
|
||||
// Apply z-index based on background/foreground settings
|
||||
if (extensionSettings.weatherForeground) {
|
||||
weatherContainer.style.zIndex = '9998'; // In front of chat
|
||||
} else if (extensionSettings.weatherBackground) {
|
||||
weatherContainer.style.zIndex = '1'; // Behind chat (default)
|
||||
} else {
|
||||
// Both disabled - don't show weather
|
||||
return;
|
||||
}
|
||||
|
||||
document.body.appendChild(weatherContainer);
|
||||
|
||||
Reference in New Issue
Block a user