SCSettings.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using BeatSaberMarkupLanguage.Attributes;
  2. namespace SongCore.UI
  3. {
  4. public class SCSettings : PersistentSingleton<SCSettings>
  5. {
  6. [UIValue("colors")]
  7. public bool Colors
  8. {
  9. get => BasicUI.ModPrefs.GetBool("SongCore", "customSongColors", true, true);
  10. set
  11. {
  12. Plugin.customSongColors = value;
  13. BasicUI.ModPrefs.SetBool("SongCore", "customSongColors", value);
  14. }
  15. }
  16. [UIValue("platforms")]
  17. public bool Platforms
  18. {
  19. get => BasicUI.ModPrefs.GetBool("SongCore", "customSongPlatforms", true, true);
  20. set
  21. {
  22. Plugin.customSongPlatforms = value;
  23. BasicUI.ModPrefs.SetBool("SongCore", "customSongPlatforms", value);
  24. }
  25. }
  26. [UIValue("diffLabels")]
  27. public bool DiffLabels
  28. {
  29. get => BasicUI.ModPrefs.GetBool("SongCore", "displayDiffLabels", true, true);
  30. set
  31. {
  32. Plugin.displayDiffLabels = value;
  33. BasicUI.ModPrefs.SetBool("SongCore", "displayDiffLabels", value);
  34. }
  35. }
  36. }
  37. }