diff --git a/Rimworld-Animations.csproj b/Rimworld-Animations.csproj
index 49f1644..f6cf1ee 100644
--- a/Rimworld-Animations.csproj
+++ b/Rimworld-Animations.csproj
@@ -84,6 +84,7 @@
+
diff --git a/Source/MainTabWindows/WorldComponent_UpdateMainTab.cs b/Source/MainTabWindows/WorldComponent_UpdateMainTab.cs
new file mode 100644
index 0000000..2694419
--- /dev/null
+++ b/Source/MainTabWindows/WorldComponent_UpdateMainTab.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using RimWorld;
+using RimWorld.Planet;
+using Verse;
+
+namespace Rimworld_Animations {
+ public class WorldComponent_UpdateMainTab : WorldComponent {
+
+ public WorldComponent_UpdateMainTab(World world) : base(world) {
+
+ }
+
+ public override void FinalizeInit() {
+ base.FinalizeInit();
+ OffsetMainButtonDefOf.OffsetManager.buttonVisible = AnimationSettings.offsetTab;
+ }
+
+
+ }
+}
diff --git a/Source/Settings/AnimationSettings.cs b/Source/Settings/AnimationSettings.cs
index 9640395..75308b8 100644
--- a/Source/Settings/AnimationSettings.cs
+++ b/Source/Settings/AnimationSettings.cs
@@ -8,9 +8,11 @@ using UnityEngine;
using RimWorld;
namespace Rimworld_Animations {
+
public class AnimationSettings : ModSettings {
public static bool orgasmQuiver, rapeShiver, soundOverride = true, hearts = true, controlGenitalRotation = false, applySemenOnAnimationOrgasm = false, fastAnimForQuickie = false;
+ public static bool offsetTab = false;
public static float shiverIntensity = 2f;
public static Dictionary offsets = new Dictionary();
@@ -20,6 +22,7 @@ namespace Rimworld_Animations {
base.ExposeData();
+ Scribe_Values.Look(ref offsetTab, "EnableOffsetTab", false);
Scribe_Values.Look(ref controlGenitalRotation, "controlGenitalRotation", false);
Scribe_Values.Look(ref orgasmQuiver, "orgasmQuiver");
Scribe_Values.Look(ref fastAnimForQuickie, "fastAnimForQuickie");
@@ -67,7 +70,7 @@ namespace Rimworld_Animations {
listingStandard.CheckboxLabeled("Enable Rape Shiver", ref AnimationSettings.rapeShiver);
listingStandard.CheckboxLabeled("Enable hearts during lovin'", ref AnimationSettings.hearts);
- listingStandard.CheckboxLabeled("Enable Offset Tab", ref OffsetMainButtonDefOf.OffsetManager.buttonVisible);
+ listingStandard.CheckboxLabeled("Enable Offset Tab", ref AnimationSettings.offsetTab);
listingStandard.Label("Shiver/Quiver Intensity (default 2): " + AnimationSettings.shiverIntensity);
AnimationSettings.shiverIntensity = listingStandard.Slider(AnimationSettings.shiverIntensity, 0.0f, 12f);
@@ -77,6 +80,12 @@ namespace Rimworld_Animations {
base.DoSettingsWindowContents(inRect);
}
+ public override void WriteSettings() {
+ base.WriteSettings();
+ OffsetMainButtonDefOf.OffsetManager.buttonVisible = AnimationSettings.offsetTab;
+
+ }
+
public override string SettingsCategory() {
return "RJW Animation Settings";
}