FaceWindowPane.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using UnityEngine;
  3. namespace COM3D2.MeidoPhotoStudio.Plugin
  4. {
  5. internal class FaceWindowPane : BaseWindowPane
  6. {
  7. private MeidoManager meidoManager;
  8. private MaidFaceSliderPane maidFaceSliderPane;
  9. private MaidFaceBlendPane maidFaceBlendPane;
  10. private MaidSwitcherPane maidSwitcherPane;
  11. public FaceWindowPane(MeidoManager meidoManager, MaidSwitcherPane maidSwitcherPane)
  12. {
  13. this.meidoManager = meidoManager;
  14. this.maidSwitcherPane = maidSwitcherPane;
  15. this.maidFaceSliderPane = new MaidFaceSliderPane(this.meidoManager);
  16. this.maidFaceBlendPane = new MaidFaceBlendPane(this.meidoManager);
  17. }
  18. public override void Draw()
  19. {
  20. this.maidSwitcherPane.Draw();
  21. this.scrollPos = GUILayout.BeginScrollView(this.scrollPos);
  22. this.maidFaceBlendPane.Draw();
  23. this.maidFaceSliderPane.Draw();
  24. GUILayout.EndScrollView();
  25. }
  26. public override void UpdatePanes()
  27. {
  28. if (!this.meidoManager.HasActiveMeido) return;
  29. if (ActiveWindow)
  30. {
  31. this.meidoManager.ActiveMeido.Maid.boMabataki = false;
  32. this.meidoManager.ActiveMeido.Maid.body0.Face.morph.EyeMabataki = 0f;
  33. this.maidFaceSliderPane.UpdatePane();
  34. this.maidFaceBlendPane.UpdatePane();
  35. }
  36. }
  37. }
  38. }