NAK_CVR_Mods/AvatarScale/ModSettings.cs
NotAKidoS f92e842f41 [AvatarScaleMod] Add settings & cleanup.
why do i obsess with making my mods look pretty when staring them down in dnspy
2023-06-23 01:02:46 -05:00

23 lines
No EOL
767 B
C#

namespace NAK.AvatarScaleMod;
// Another thing i stole from Kafe, this organizes stuff so much moreee
// Should I move the entries here too?
static class ModSettings
{
public static void InitializeModSettings()
{
AvatarScaleMod.EntryEnabled.OnEntryValueChanged.Subscribe(OnEntryEnabledChanged);
AvatarScaleMod.EntryUseScaleGesture.OnEntryValueChanged.Subscribe(OnEntryUseScaleGestureChanged);
}
static void OnEntryEnabledChanged(bool newValue, bool oldValue)
{
if (AvatarScaleManager.LocalAvatar != null)
AvatarScaleManager.LocalAvatar.enabled = newValue;
}
static void OnEntryUseScaleGestureChanged(bool newValue, bool oldValue)
{
AvatarScaleGesture.GestureEnabled = newValue;
}
}