[AvatarScaleMod] Oops, inverted setting toggles

This commit is contained in:
NotAKidoS 2023-06-23 02:45:09 -05:00
parent f92e842f41
commit 5b7b586298

View file

@ -10,14 +10,14 @@ static class ModSettings
AvatarScaleMod.EntryUseScaleGesture.OnEntryValueChanged.Subscribe(OnEntryUseScaleGestureChanged); AvatarScaleMod.EntryUseScaleGesture.OnEntryValueChanged.Subscribe(OnEntryUseScaleGestureChanged);
} }
static void OnEntryEnabledChanged(bool newValue, bool oldValue) static void OnEntryEnabledChanged(bool oldVal, bool newVal)
{ {
if (AvatarScaleManager.LocalAvatar != null) if (AvatarScaleManager.LocalAvatar != null)
AvatarScaleManager.LocalAvatar.enabled = newValue; AvatarScaleManager.LocalAvatar.enabled = newVal;
} }
static void OnEntryUseScaleGestureChanged(bool newValue, bool oldValue) static void OnEntryUseScaleGestureChanged(bool oldVal, bool newVal)
{ {
AvatarScaleGesture.GestureEnabled = newValue; AvatarScaleGesture.GestureEnabled = newVal;
} }
} }