New settings handling

This commit is contained in:
amevarashi 2023-03-24 20:22:54 +05:00
parent fed4b54915
commit 8d49addd63
24 changed files with 309 additions and 233 deletions

View file

@ -11,7 +11,7 @@ namespace RJWSexperience.SexHistory
{
private static readonly rjw.Modules.Shared.Logs.ILog log = LogManager.GetLogger<DebugLogProvider>("RecordRandomizer");
private static Settings.SettingsTabHistory Settings => SexperienceMod.Settings.History;
private static Configurations Settings => SexperienceMod.Settings;
public static bool Randomize(Pawn pawn)
{

View file

@ -367,7 +367,7 @@ namespace RJWSexperience.SexHistory.UI
if (Widgets.ButtonInvisible(lockRect))
{
SoundDefOf.Click.PlayOneShotOnCamera();
settings.SelectionLocked = !settings.SelectionLocked;
settings.SelectionLocked.Value = !settings.SelectionLocked.Value;
}
}