mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
[ShadowCloneFallback] Fixed option condition being inverted
This commit is contained in:
parent
ca9d35499d
commit
f12fb89fc0
1 changed files with 6 additions and 6 deletions
|
@ -10,18 +10,18 @@ public class ShadowCloneFallback : MelonMod
|
||||||
private static readonly MelonPreferences_Category Category =
|
private static readonly MelonPreferences_Category Category =
|
||||||
MelonPreferences.CreateCategory(SettingsCategory);
|
MelonPreferences.CreateCategory(SettingsCategory);
|
||||||
|
|
||||||
private static readonly MelonPreferences_Entry<bool> EntryEnabled =
|
private static readonly MelonPreferences_Entry<bool> EntryUseFallbackClones =
|
||||||
Category.CreateEntry("Enabled", true, description: "Toggle ShadowCloneFallback entirely.");
|
Category.CreateEntry("Use Fallback Clones", true, description: "Toggle ShadowCloneFallback entirely.");
|
||||||
|
|
||||||
public override void OnInitializeMelon()
|
public override void OnInitializeMelon()
|
||||||
{
|
{
|
||||||
ShadowCloneUtils.s_UseShaderClones = EntryEnabled.Value;
|
ShadowCloneUtils.s_UseShaderClones = EntryUseFallbackClones.Value;
|
||||||
EntryEnabled.OnEntryValueChanged.Subscribe(OnEnabledChanged);
|
EntryUseFallbackClones.OnEntryValueChanged.Subscribe(OnEnabledChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnEnabledChanged(bool _, bool __)
|
private void OnEnabledChanged(bool _, bool __)
|
||||||
{
|
{
|
||||||
ShadowCloneUtils.s_UseShaderClones = EntryEnabled.Value;
|
ShadowCloneUtils.s_UseShaderClones = !EntryUseFallbackClones.Value;
|
||||||
LoggerInstance.Msg($"ShadowCloneUtils.s_UseShaderClones is now {(EntryEnabled.Value ? "enabled" : "disabled")}.");
|
LoggerInstance.Msg($"ShadowCloneFallback is now {(EntryUseFallbackClones.Value ? "enabled" : "disabled")}.");
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue