BaseWindowPane.cs 567 B

1234567891011121314151617181920212223
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3. namespace COM3D2.MeidoPhotoStudio.Plugin
  4. {
  5. public abstract class BaseWindowPane : BasePane
  6. {
  7. protected List<BasePane> Panes = new List<BasePane>();
  8. protected Vector2 scrollPos;
  9. public bool ActiveWindow { get; set; }
  10. public T AddPane<T>(T pane) where T : BasePane
  11. {
  12. Panes.Add(pane);
  13. return pane;
  14. }
  15. public virtual void UpdatePanes()
  16. {
  17. foreach (BasePane pane in Panes) pane.UpdatePane();
  18. }
  19. }
  20. }