mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
thirdperson, propundobutton, mirror clone test, you are a clone test, bettershadowclone test, nevermind, anotherlocaltestmod, and some changes to avatarscaling ???
This commit is contained in:
parent
df45fb50d9
commit
9944ad7611
43 changed files with 1076 additions and 173 deletions
60
YouAreAClone/ModSettings.cs
Normal file
60
YouAreAClone/ModSettings.cs
Normal file
|
@ -0,0 +1,60 @@
|
|||
using MelonLoader;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NAK.BetterShadowClone;
|
||||
|
||||
public static class ModSettings
|
||||
{
|
||||
#region Melon Prefs
|
||||
|
||||
private const string SettingsCategory = nameof(ShadowCloneMod);
|
||||
|
||||
private static readonly MelonPreferences_Category Category =
|
||||
MelonPreferences.CreateCategory(SettingsCategory);
|
||||
|
||||
internal static readonly MelonPreferences_Entry<bool> EntryEnabled =
|
||||
Category.CreateEntry("Enabled", true,
|
||||
description: "Enable Mirror Clone.");
|
||||
|
||||
internal static readonly MelonPreferences_Entry<bool> EntryUseShadowClone =
|
||||
Category.CreateEntry("Use Shadow Clone", true,
|
||||
description: "Should you have shadow clones?");
|
||||
|
||||
internal static readonly MelonPreferences_Entry<bool> EntryCopyMaterialToShadow =
|
||||
Category.CreateEntry("Copy Material to Shadow", true,
|
||||
description: "Should the shadow clone copy the material from the original mesh? Note: This can have a slight performance hit.");
|
||||
|
||||
internal static readonly MelonPreferences_Entry<bool> EntryDontRespectFPR =
|
||||
Category.CreateEntry("Dont Respect FPR", false,
|
||||
description: "Should the transform hider not respect FPR?");
|
||||
|
||||
internal static readonly MelonPreferences_Entry<bool> EntryDebugHeadHide =
|
||||
Category.CreateEntry("Debug Head Hide", false,
|
||||
description: "Should head be hidden for first render?");
|
||||
|
||||
internal static readonly MelonPreferences_Entry<bool> EntryDebugShowShadow =
|
||||
Category.CreateEntry("Debug Show Shadow", false,
|
||||
description: "Should the shadow clone be shown?");
|
||||
|
||||
internal static readonly MelonPreferences_Entry<bool> EntryDebugShowInFront =
|
||||
Category.CreateEntry("Debug Show in Front", false,
|
||||
description: "Should the shadow clone be shown in front?");
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
internal static void Initialize()
|
||||
{
|
||||
foreach (MelonPreferences_Entry setting in Category.Entries)
|
||||
setting.OnEntryValueChangedUntyped.Subscribe(OnSettingsChanged);
|
||||
}
|
||||
|
||||
private static void OnSettingsChanged(object oldValue = null, object newValue = null)
|
||||
{
|
||||
TransformHiderManager.s_DisallowFprExclusions = EntryDontRespectFPR.Value;
|
||||
TransformHiderManager.s_DebugHeadHide = EntryDebugHeadHide.Value;
|
||||
ShadowCloneManager.s_CopyMaterialsToShadow = EntryCopyMaterialToShadow.Value;
|
||||
ShadowCloneManager.s_DebugShowShadow = EntryDebugShowShadow.Value;
|
||||
ShadowCloneManager.s_DebugShowInFront = EntryDebugShowInFront.Value;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue