Skip to content

Commit

Permalink
put separator between controls
Browse files Browse the repository at this point in the history
  • Loading branch information
Sauceke committed Nov 7, 2023
1 parent 19f2fc1 commit aebe0b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions KK_SexFaces/ChaControlExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
11 changes: 7 additions & 4 deletions KK_SexFaces/SexFacesGui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit aebe0b6

Please sign in to comment.