FaceWindowPane.cs 1.4 KB

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