BGWindowPane.cs 985 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using UnityEngine;
  3. namespace COM3D2.MeidoPhotoStudio.Plugin
  4. {
  5. public class BGWindowPane : BaseWindowPane
  6. {
  7. private BackgroundSelectorPane backgroundSelectorPane;
  8. private PropsPane propsPane;
  9. private LightsPane lightsPane;
  10. public BGWindowPane(EnvironmentManager environmentManager)
  11. {
  12. this.backgroundSelectorPane = new BackgroundSelectorPane(environmentManager);
  13. this.propsPane = new PropsPane(environmentManager.PropManager);
  14. this.lightsPane = new LightsPane(environmentManager);
  15. }
  16. public override void Draw()
  17. {
  18. this.backgroundSelectorPane.Draw();
  19. this.propsPane.Draw();
  20. this.lightsPane.Draw();
  21. }
  22. public override void UpdatePanes()
  23. {
  24. if (ActiveWindow)
  25. {
  26. this.propsPane.UpdatePane();
  27. this.lightsPane.UpdatePane();
  28. }
  29. }
  30. }
  31. }