From aebe0b672f9119a78b2099bee7c9dd55d8e0d98e Mon Sep 17 00:00:00 2001 From: Sauceke <76826783+Sauceke@users.noreply.github.com> Date: Tue, 7 Nov 2023 23:23:42 +0300 Subject: [PATCH] put separator between controls --- KK_SexFaces/ChaControlExtensions.cs | 4 ++-- KK_SexFaces/SexFacesGui.cs | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/KK_SexFaces/ChaControlExtensions.cs b/KK_SexFaces/ChaControlExtensions.cs index 3b53166..129c62c 100644 --- a/KK_SexFaces/ChaControlExtensions.cs +++ b/KK_SexFaces/ChaControlExtensions.cs @@ -5,8 +5,8 @@ namespace SexFaces { public static class ChaControlExtensions { - public static void MoveNeck(this ChaControl chaControl, Quaternion end) - => chaControl.StartCoroutine(SlerpNeck(chaControl, end)); + public static void MoveNeck(this ChaControl chaControl, Quaternion end) => + chaControl.StartCoroutine(SlerpNeck(chaControl, end)); private static IEnumerator SlerpNeck(ChaControl chaControl, Quaternion end) { diff --git a/KK_SexFaces/SexFacesGui.cs b/KK_SexFaces/SexFacesGui.cs index bee0b32..5beb768 100644 --- a/KK_SexFaces/SexFacesGui.cs +++ b/KK_SexFaces/SexFacesGui.cs @@ -103,16 +103,19 @@ private void RegisterMakerControls(SexFacesPlugin plugin, RegisterSubCategoriesE AddPatternMixer(e, cat, "Mouth Pattern Mixer", Enum.GetNames(typeof(MouthPattern)), Controller.ApplyMouthExpression, plugin); e.AddControl(new MakerSeparator(cat, plugin)); - e.AddControl(new MakerSlider(cat, "Left Iris Scale", 0f, 2f, 1f, plugin)) - .ValueChanged.Subscribe(Controller.ChangeLeftIrisScale); - e.AddControl(new MakerSlider(cat, "Right Iris Scale", 0f, 2f, 1f, plugin)) - .ValueChanged.Subscribe(Controller.ChangeRightIrisScale); + e.AddControl(new MakerText("Head", cat, plugin)); e.AddControl(new MakerSlider(cat, "Head Pitch", -45f, 45f, 0f, plugin)) .ValueChanged.Subscribe(Controller.ChangeHeadPitch); e.AddControl(new MakerSlider(cat, "Head Yaw", -45f, 45f, 0f, plugin)) .ValueChanged.Subscribe(Controller.ChangeHeadYaw); e.AddControl(new MakerSlider(cat, "Head Roll", -45f, 45f, 0f, plugin)) .ValueChanged.Subscribe(Controller.ChangeHeadRoll); + e.AddControl(new MakerSeparator(cat, plugin)); + e.AddControl(new MakerText("Iris", cat, plugin)); + e.AddControl(new MakerSlider(cat, "Left Iris Scale", 0f, 2f, 1f, plugin)) + .ValueChanged.Subscribe(Controller.ChangeLeftIrisScale); + e.AddControl(new MakerSlider(cat, "Right Iris Scale", 0f, 2f, 1f, plugin)) + .ValueChanged.Subscribe(Controller.ChangeRightIrisScale); } private void AddPatternMixer(RegisterSubCategoriesEvent e, MakerCategory cat,