forked from nikita/muzika-gromche
Add Config.ReduceVFXIntensity option
This commit is contained in:
parent
7eaa5fce75
commit
a64d671527
|
|
@ -6,6 +6,7 @@
|
|||
- Adjusted lyrics for PWNED (can't believe it missed an obvious joke).
|
||||
- Added a new track Paarden.
|
||||
- Added a new track DiscoKapot.
|
||||
- Added an accessibility option to reduce the intensity of overly distracting visual effects.
|
||||
|
||||
## MuzikaGromche 1337.9001.3 - v73 Happy New Year Edition
|
||||
|
||||
|
|
|
|||
|
|
@ -1950,7 +1950,8 @@ namespace MuzikaGromche
|
|||
|
||||
if (GetInterpolation(loopOffsetTimestamp, track.DrunknessLoopOffsetTimeSeries, Easing.Linear) is { } drunkness)
|
||||
{
|
||||
events.Add(new DrunkEvent(drunkness));
|
||||
var value = Config.ReduceVFXIntensity.Value ? drunkness * 0.3f : drunkness;
|
||||
events.Add(new DrunkEvent(value));
|
||||
}
|
||||
|
||||
if (GetInterpolation(loopOffsetTimestamp, track.CondensationLoopOffsetTimeSeries, Easing.Linear) is { } condensation)
|
||||
|
|
@ -2341,6 +2342,8 @@ namespace MuzikaGromche
|
|||
{
|
||||
public static ConfigEntry<bool> DisplayLyrics { get; private set; } = null!;
|
||||
|
||||
public static ConfigEntry<bool> ReduceVFXIntensity { get; private set; } = null!;
|
||||
|
||||
public static ConfigEntry<float> AudioOffset { get; private set; } = null!;
|
||||
|
||||
public static ConfigEntry<bool> SkipExplicitTracks { get; private set; } = null!;
|
||||
|
|
@ -2407,6 +2410,10 @@ namespace MuzikaGromche
|
|||
new ConfigDescription("Display lyrics in the HUD tooltip when you hear the music."));
|
||||
LethalConfigManager.AddConfigItem(new BoolCheckBoxConfigItem(DisplayLyrics, requiresRestart: false));
|
||||
|
||||
ReduceVFXIntensity = configFile.Bind("General", "Reduce Visual Effects", false,
|
||||
new ConfigDescription("Reduce intensity of certain visual effects when you hear the music."));
|
||||
LethalConfigManager.AddConfigItem(new BoolCheckBoxConfigItem(ReduceVFXIntensity, requiresRestart: false));
|
||||
|
||||
Volume = configFile.Bind("General", "Volume", VolumeDefault,
|
||||
new ConfigDescription("Volume of music played by this mod.", new AcceptableValueRange<float>(VolumeMin, VolumeMax)));
|
||||
LethalConfigManager.AddConfigItem(new FloatSliderConfigItem(Volume, requiresRestart: false));
|
||||
|
|
|
|||
Loading…
Reference in New Issue