FaceWindowPane.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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.StopBlink();
  32. base.UpdatePanes();
  33. }
  34. }
  35. }
  36. }