rimworld-animations/Source/Settings/AnimationSettings.cs

49 lines
1.6 KiB
C#
Raw Normal View History

2020-04-21 03:07:15 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;
using UnityEngine;
namespace Rimworld_Animations {
public class AnimationSettings : ModSettings {
2020-04-21 04:59:09 +00:00
public static bool orgasmQuiver, rapeShiver;
public static float shiverIntensity = 2f;
2020-04-21 03:07:15 +00:00
public override void ExposeData() {
Scribe_Values.Look(ref orgasmQuiver, "orgasmQuiver");
2020-04-21 04:59:09 +00:00
Scribe_Values.Look(ref rapeShiver, "rapeShiver");
Scribe_Values.Look(ref shiverIntensity, "shiverIntensity", 2f);
2020-04-21 03:07:15 +00:00
base.ExposeData();
}
}
public class RJW_Animations : Mod {
public RJW_Animations(ModContentPack content) : base(content) {
}
public override void DoSettingsWindowContents(Rect inRect) {
Listing_Standard listingStandard = new Listing_Standard();
listingStandard.Begin(inRect);
listingStandard.CheckboxLabeled("Enable Orgasm Quiver", ref AnimationSettings.orgasmQuiver);
2020-04-21 04:59:09 +00:00
listingStandard.CheckboxLabeled("Enable Rape Shiver", ref AnimationSettings.rapeShiver);
listingStandard.Label("Shiver/Quiver Intensity (default 2): " + AnimationSettings.shiverIntensity);
AnimationSettings.shiverIntensity = listingStandard.Slider(AnimationSettings.shiverIntensity, 0.0f, 12f);
2020-04-21 03:07:15 +00:00
listingStandard.End();
base.DoSettingsWindowContents(inRect);
}
public override string SettingsCategory() {
return "RJW Animation Settings";
}
}
}