-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
5 changed files
with
114 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,55 @@ | ||
namespace BetterFriendship | ||
using System.ComponentModel; | ||
using System.Runtime.CompilerServices; | ||
|
||
namespace BetterFriendship | ||
{ | ||
internal class ModConfig | ||
internal class ModConfig : INotifyPropertyChanged | ||
{ | ||
public bool DisplayTalkPrompts { get; set; } = true; | ||
public string GiftPreference { get; set; } = "like"; | ||
public int GiftCycleCount { get; set; } = 5; | ||
public int GiftCycleDelay { get; set; } = 2000; | ||
public bool IgnoreMaxedFriendships { get; set; } = false; | ||
public bool OnlyHighestQuality { get; set; } = false; | ||
public bool DisplayBubbles { get; set; } = true; | ||
public bool Debug { get; set; } = false; | ||
|
||
private string _giftPreference = "like"; | ||
private int _giftCycleCount = 5; | ||
private bool _onlyHighestQuality; | ||
|
||
public string GiftPreference | ||
{ | ||
get => _giftPreference; | ||
set | ||
{ | ||
_giftPreference = value; | ||
OnPropertyChanged(); | ||
} | ||
} | ||
|
||
public int GiftCycleCount | ||
{ | ||
get => _giftCycleCount; | ||
set | ||
{ | ||
_giftCycleCount = value; | ||
OnPropertyChanged(); | ||
} | ||
} | ||
|
||
public bool OnlyHighestQuality | ||
{ | ||
get => _onlyHighestQuality; | ||
set | ||
{ | ||
_onlyHighestQuality = value; | ||
OnPropertyChanged(); | ||
} | ||
} | ||
|
||
public event PropertyChangedEventHandler PropertyChanged; | ||
|
||
protected void OnPropertyChanged([CallerMemberName] string propertyName = null) | ||
{ | ||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); | ||
} | ||
} | ||
} | ||
} |
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