1
0

AudioManagerSettings.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using UnityEngine;
  2. using ModSettings;
  3. using MelonLoader;
  4. namespace AudioMgr
  5. {
  6. internal class AudioManagerSettings : JsonModSettings
  7. {
  8. [Section("Aurora Audio")]
  9. [Name("Limit Volume")]
  10. [Description("Limit Volume to Value below")]
  11. public bool enableAuroraTweaks = false;
  12. [Name("Music")]
  13. [Description("Left: Silent / Right: Maximum Volume")]
  14. [Slider(0, 100)]
  15. public int auroraVolume = 0;
  16. [Section("Wind Audio Indoor (clattering)")]
  17. [Name("Limit Volume")]
  18. [Description("Limit Volume to Value below")]
  19. public bool enableWindTweaks = false;
  20. [Name("Indoor Wind Audio")]
  21. [Description("Left: Silent / Right: Maximum Volume")]
  22. [Slider(0, 100)]
  23. public int windVolume = 0;
  24. [Section("Waterfalls")]
  25. [Name("Silent Waterfalls")]
  26. [Description("Disable waterfall audio")]
  27. public bool disableWaterfall = true;
  28. [Section("Flares")]
  29. [Name("Silent Flares")]
  30. [Description("Disable flare audio")]
  31. public bool disableFlare = true;
  32. protected override void OnConfirm()
  33. {
  34. base.OnConfirm();
  35. }
  36. }
  37. internal static class Settings
  38. {
  39. public static AudioManagerSettings options;
  40. public static void OnLoad()
  41. {
  42. options = new AudioManagerSettings();
  43. options.AddToModSettings("AudioManager");
  44. }
  45. }
  46. }