mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
[IKFixes] Removed illegal characters from melonpref identifiers.
This commit is contained in:
parent
df53840a63
commit
bec47c6a26
10 changed files with 426 additions and 14 deletions
37
AvatarScale/Input/DebugKeybinds.cs
Normal file
37
AvatarScale/Input/DebugKeybinds.cs
Normal 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.");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue