-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.cs
More file actions
65 lines (52 loc) · 2.41 KB
/
Config.cs
File metadata and controls
65 lines (52 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
using BaseLib.Config;
using Godot;
namespace SimplifiedVisuals;
public enum EffectIntensity
{
Default,
Reduced,
Disabled
}
[ConfigHoverTipsByDefault]
public class Config : SimpleModConfig
{
[ConfigSection("GlobalPresets")]
[ConfigButton("ShowAll")]
public static void ShowAllEffects(ModConfig config) => ToggleAll(config, EffectIntensity.Default);
[ConfigButton("ReduceAll")]
public static void ReduceAllEffects(ModConfig config) => ToggleAll(config, EffectIntensity.Reduced);
[ConfigButton("DisableAll")]
public static void DisableAllEffects(ModConfig config) => ToggleAll(config, EffectIntensity.Disabled);
[ConfigSection("CombatEffects")]
public static EffectIntensity BigSlashEffect { get; set; } = EffectIntensity.Reduced;
public static bool DisablePurpleDoomOverlay { get; set; } = false;
public static bool DisableRadialBlurEffect { get; set; } = true;
public static bool DisableScreamEffect { get; set; } = true;
public static bool DisableSpookyScreamEffect { get; set; } = true;
public static EffectIntensity StarryImpactEffect { get; set; } = EffectIntensity.Reduced;
public static bool DisableRegentAttackEffect { get; set; } = false;
public static bool DisableSovereignBladeMovement { get; set; } = false;
[ConfigSection("Environments")]
public static bool DisableInsatiableSandfalls { get; set; } = true;
public static bool DisableOtherInsatiableSandEffects { get; set; } = false;
public static bool DisableRainEffect { get; set; } = false;
[ConfigSection("Gameplay")]
public static bool QuickerDraw { get; set; } = false;
[ConfigSection("Timeline")]
public static bool FreezeBackgroundStars { get; set; } = true;
public static bool HideConfetti { get; set; } = true;
public static bool DisableUnlockShockwaves { get; set; } = false;
[ConfigSection("UserInterface")]
public static bool DisableRareCardGlow { get; set; } = true;
public static bool DisableRunHistoryScreenTransition { get; set; } = true;
private static void ToggleAll(ModConfig config, EffectIntensity action)
{
foreach (var prop in config.GetType().GetProperties())
{
if (prop.PropertyType == typeof(bool))
prop.SetValue(null, action != EffectIntensity.Default);
else if (prop.PropertyType == typeof(EffectIntensity))
prop.SetValue(null, action);
}
}
}