1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using BeatSaberMarkupLanguage.Attributes;
- namespace SongCore.UI
- {
- public class SCSettings : PersistentSingleton<SCSettings>
- {
- [UIValue("colors")]
- public bool Colors
- {
- get => BasicUI.ModPrefs.GetBool("SongCore", "customSongColors", true, true);
- set
- {
- Plugin.customSongColors = value;
- BasicUI.ModPrefs.SetBool("SongCore", "customSongColors", value);
- }
- }
- [UIValue("platforms")]
- public bool Platforms
- {
- get => BasicUI.ModPrefs.GetBool("SongCore", "customSongPlatforms", true, true);
- set
- {
- Plugin.customSongPlatforms = value;
- BasicUI.ModPrefs.SetBool("SongCore", "customSongPlatforms", value);
- }
- }
- [UIValue("diffLabels")]
- public bool DiffLabels
- {
- get => BasicUI.ModPrefs.GetBool("SongCore", "displayDiffLabels", true, true);
- set
- {
- Plugin.displayDiffLabels = value;
- BasicUI.ModPrefs.SetBool("SongCore", "displayDiffLabels", value);
- }
- }
- }
- }
|