[IKFixes] Removed illegal characters from melonpref identifiers.

This commit is contained in:
NotAKidoS 2023-09-23 18:59:06 -05:00
parent df53840a63
commit bec47c6a26
10 changed files with 426 additions and 14 deletions

View file

@ -0,0 +1,37 @@
using NAK.AvatarScaleMod.AvatarScaling;
using UnityEngine;
namespace NAK.AvatarScaleMod.InputHandling;
public static class DebugKeybinds
{
public static void DoDebugInput()
{
if (AvatarScaleManager.Instance == null)
return;
float currentHeight;
const float step = 0.1f;
if (Input.GetKeyDown(KeyCode.Equals) || Input.GetKeyDown(KeyCode.KeypadPlus))
{
currentHeight = AvatarScaleManager.Instance.GetHeight() + step;
AvatarScaleManager.Instance.SetHeight(currentHeight);
AvatarScaleMod.Logger.Msg($"Setting height: {currentHeight}");
}
else if (Input.GetKeyDown(KeyCode.Minus) || Input.GetKeyDown(KeyCode.KeypadMinus))
{
currentHeight = AvatarScaleManager.Instance.GetHeight() - step;
AvatarScaleManager.Instance.SetHeight(currentHeight);
AvatarScaleMod.Logger.Msg($"Setting height: {currentHeight}");
}
else if (Input.GetKeyDown(KeyCode.Backspace))
{
AvatarScaleManager.Instance.ResetHeight();
AvatarScaleMod.Logger.Msg($"Resetting height.");
}
}
}