mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
Move many mods to Deprecated folder, fix spelling
This commit is contained in:
parent
5e822cec8d
commit
0042590aa6
539 changed files with 7475 additions and 3120 deletions
27
.Deprecated/ShadowCloneFallback/Main.cs
Normal file
27
.Deprecated/ShadowCloneFallback/Main.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
using ABI_RC.Core.Player.ShadowClone;
|
||||
using MelonLoader;
|
||||
|
||||
namespace NAK.ShadowCloneFallback;
|
||||
|
||||
public class ShadowCloneFallback : MelonMod
|
||||
{
|
||||
private const string SettingsCategory = nameof(ShadowCloneFallback);
|
||||
|
||||
private static readonly MelonPreferences_Category Category =
|
||||
MelonPreferences.CreateCategory(SettingsCategory);
|
||||
|
||||
private static readonly MelonPreferences_Entry<bool> EntryUseFallbackClones =
|
||||
Category.CreateEntry("Use Fallback Clones", true, description: "Toggle ShadowCloneFallback entirely.");
|
||||
|
||||
public override void OnInitializeMelon()
|
||||
{
|
||||
ShadowCloneUtils.s_UseShaderClones = !EntryUseFallbackClones.Value;
|
||||
EntryUseFallbackClones.OnEntryValueChanged.Subscribe(OnEnabledChanged);
|
||||
}
|
||||
|
||||
private void OnEnabledChanged(bool _, bool __)
|
||||
{
|
||||
ShadowCloneUtils.s_UseShaderClones = !EntryUseFallbackClones.Value;
|
||||
LoggerInstance.Msg($"ShadowCloneFallback is now {(EntryUseFallbackClones.Value ? "enabled" : "disabled")}.");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue