-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6600506
commit 52ee40e
Showing
13 changed files
with
2,260 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace AATool.Settings | ||
{ | ||
//i don't love the way these classes work, i might change them later | ||
public class NotesSettings : SettingsGroup | ||
{ | ||
public static NotesSettings Instance = new NotesSettings(); | ||
|
||
public const string ENABLED = "enabled"; | ||
public const string ALWAYS_ON_TOP = "always_on_top"; | ||
|
||
public bool Enabled { get => Get<bool>(ENABLED); set => Set(ENABLED, value); } | ||
public bool AlwaysOnTop { get => Get<bool>(ALWAYS_ON_TOP); set => Set(ALWAYS_ON_TOP, value); } | ||
|
||
private NotesSettings() | ||
{ | ||
FileName = "notes"; | ||
Load(); | ||
} | ||
|
||
public override void ResetToDefaults() | ||
{ | ||
Entries = new Dictionary<string, object>(); | ||
Set(ENABLED, false); | ||
Set(ALWAYS_ON_TOP, true); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.