FaceWindowPane.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using UnityEngine;
  2. namespace COM3D2.MeidoPhotoStudio.Plugin
  3. {
  4. internal class FaceWindowPane : BaseMainWindowPane
  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.tabsPane.Draw();
  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. base.UpdatePanes();
  34. }
  35. }
  36. }
  37. }