1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- 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.Maid.boMabataki = false;
- this.meidoManager.ActiveMeido.Maid.body0.Face.morph.EyeMabataki = 0f;
- base.UpdatePanes();
- }
- }
- }
- }
|