[AvatarScale] Cleanup

This commit is contained in:
NotAKidoS 2023-08-14 18:53:02 -05:00
parent ab4276e880
commit 5b40a2a185
4 changed files with 12 additions and 12 deletions

View file

@ -220,13 +220,13 @@ public class AvatarScaleManager : MonoBehaviour
}
}
void Update()
private void Update()
{
ApplyAvatarScaling();
ApplyComponentScaling();
}
void LateUpdate()
private void LateUpdate()
{
ApplyAvatarScaling();
ApplyComponentScaling();

View file

@ -8,11 +8,11 @@ using RootMotion.FinalIK;
namespace NAK.AvatarScaleMod.HarmonyPatches;
class PlayerSetupPatches
internal class PlayerSetupPatches
{
[HarmonyPostfix]
[HarmonyPatch(typeof(PlayerSetup), nameof(PlayerSetup.SetupAvatar))]
static void Postfix_PlayerSetup_SetupAvatar(ref PlayerSetup __instance)
private static void Postfix_PlayerSetup_SetupAvatar(ref PlayerSetup __instance)
{
try
{
@ -27,11 +27,11 @@ class PlayerSetupPatches
}
}
class PuppetMasterPatches
internal class PuppetMasterPatches
{
[HarmonyPostfix]
[HarmonyPatch(typeof(PuppetMaster), nameof(PuppetMaster.AvatarInstantiated))]
static void Postfix_PuppetMaster_AvatarInstantiated(ref PuppetMaster __instance)
private static void Postfix_PuppetMaster_AvatarInstantiated(ref PuppetMaster __instance)
{
try
{
@ -45,11 +45,11 @@ class PuppetMasterPatches
}
}
class GesturePlaneTestPatches
internal class GesturePlaneTestPatches
{
[HarmonyPostfix]
[HarmonyPatch(typeof(GesturePlaneTest), nameof(GesturePlaneTest.Start))]
static void Postfix_GesturePlaneTest_Start()
private static void Postfix_GesturePlaneTest_Start()
{
try
{

View file

@ -16,7 +16,7 @@ public class AvatarScaleMod : MelonMod
ApplyPatches(typeof(HarmonyPatches.GesturePlaneTestPatches));
}
void ApplyPatches(Type type)
private void ApplyPatches(Type type)
{
try
{

View file

@ -4,7 +4,7 @@ namespace NAK.AvatarScaleMod;
// i like this
static class ModSettings
internal static class ModSettings
{
public static readonly MelonPreferences_Category Category =
MelonPreferences.CreateCategory(nameof(AvatarScaleMod));
@ -27,12 +27,12 @@ static class ModSettings
AvatarScaleGesture.GestureEnabled = EntryUseScaleGesture.Value;
}
static void OnEntryEnabledChanged(bool oldValue, bool newValue)
private static void OnEntryEnabledChanged(bool oldValue, bool newValue)
{
AvatarScaleManager.GlobalEnabled = newValue;
}
static void OnEntryUseScaleGestureChanged(bool oldValue, bool newValue)
private static void OnEntryUseScaleGestureChanged(bool oldValue, bool newValue)
{
AvatarScaleGesture.GestureEnabled = newValue;
}