12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using UnityEngine;
- namespace COM3D2.MeidoPhotoStudio.Plugin
- {
- internal class FaceWindowPane : BaseMainWindowPane
- {
- private MeidoManager meidoManager;
- private MaidFaceSliderPane maidFaceSliderPane;
- private MaidFaceBlendPane maidFaceBlendPane;
- private MaidSwitcherPane maidSwitcherPane;
- public FaceWindowPane(MeidoManager meidoManager, MaidSwitcherPane maidSwitcherPane)
- {
- this.meidoManager = meidoManager;
- this.maidSwitcherPane = maidSwitcherPane;
- this.maidFaceSliderPane = AddPane(new MaidFaceSliderPane(this.meidoManager));
- this.maidFaceBlendPane = AddPane(new MaidFaceBlendPane(this.meidoManager));
- }
- public override void Draw()
- {
- this.tabsPane.Draw();
- this.maidSwitcherPane.Draw();
- this.scrollPos = GUILayout.BeginScrollView(this.scrollPos);
- this.maidFaceBlendPane.Draw();
- this.maidFaceSliderPane.Draw();
- GUILayout.EndScrollView();
- }
- public override void UpdatePanes()
- {
- if (!this.meidoManager.HasActiveMeido) return;
- if (ActiveWindow)
- {
- this.meidoManager.ActiveMeido.StopBlink();
- base.UpdatePanes();
- }
- }
- }
- }
|