BG2WindowPane.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace COM3D2.MeidoPhotoStudio.Plugin
  5. {
  6. internal class BG2WindowPane : BaseWindowPane
  7. {
  8. private EnvironmentManager environmentManager;
  9. private MeidoManager meidoManager;
  10. private PropsPane propsPane;
  11. private AttachPropPane attachPropPane;
  12. public BG2WindowPane(MeidoManager meidoManager, EnvironmentManager environmentManager)
  13. {
  14. this.environmentManager = environmentManager;
  15. this.meidoManager = meidoManager;
  16. this.propsPane = new PropsPane(this.environmentManager.PropManager);
  17. this.attachPropPane = new AttachPropPane(this.meidoManager, this.environmentManager.PropManager);
  18. }
  19. public override void Draw()
  20. {
  21. this.propsPane.Draw();
  22. this.attachPropPane.Draw();
  23. }
  24. public override void UpdatePanes()
  25. {
  26. if (ActiveWindow)
  27. {
  28. this.propsPane.UpdatePane();
  29. this.attachPropPane.UpdatePane();
  30. }
  31. }
  32. }
  33. }