feat: update configuration keys to use PascalCase for consistency across seasonal scripts
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
const config = window.SeasonalsPluginConfig?.snowstorm || {};
|
||||
const config = window.SeasonalsPluginConfig?.Snowstorm || {};
|
||||
|
||||
const snowstorm = config.enableSnowstorm !== undefined ? config.enableSnowstorm : true; // enable/disable snowstorm
|
||||
let snowflakesCount = config.snowflakesCount || 500; // count of snowflakes (recommended values: 300-600)
|
||||
const snowflakesCountMobile = config.snowflakesCountMobile || 250; // count of snowflakes on mobile devices (Warning: High values may affect performance)
|
||||
const snowFallSpeed = config.speed || 6; // speed of snowfall (recommended values: 4-8)
|
||||
const horizontalWind = config.horizontalWind || 4; // horizontal wind speed (recommended value: 4)
|
||||
const verticalVariation = config.verticalVariation || 2; // vertical variation (recommended value: 2)
|
||||
const snowstorm = config.enableSnowstorm !== undefined ? config.EnableSnowstorm : true; // enable/disable snowstorm
|
||||
let snowflakesCount = config.SnowflakesCount || 500; // count of snowflakes (recommended values: 300-600)
|
||||
const snowflakesCountMobile = config.SnowflakesCountMobile || 250; // count of snowflakes on mobile devices (Warning: High values may affect performance)
|
||||
const snowFallSpeed = config.Speed || 6; // speed of snowfall (recommended values: 4-8)
|
||||
const horizontalWind = config.HorizontalWind || 4; // horizontal wind speed (recommended value: 4)
|
||||
const verticalVariation = config.VerticalVariation || 2; // vertical variation (recommended value: 2)
|
||||
|
||||
let msgPrinted = false; // flag to prevent multiple console messages
|
||||
|
||||
|
||||
Reference in New Issue
Block a user