FguiPanel.cs 605 B

1234567891011121314151617181920212223242526
  1. using FairyGUI;
  2. using XGame.Framework.UI;
  3. namespace XGame.Framework.FGUI
  4. {
  5. public class FguiPanel : IUIPanel
  6. {
  7. private GComponent _panel;
  8. private UILayer _layer;
  9. public FguiPanel(GComponent uiPanel, UILayer layer)
  10. {
  11. _panel = uiPanel;
  12. _layer = layer;
  13. }
  14. public GComponent Panel => _panel;
  15. #region IUIPanel ½Ó¿ÚʵÏÖ
  16. UILayer IUIPanel.Layer => _layer;
  17. void IUIPanel.SetActive(bool isActive)
  18. {
  19. _panel.displayObject.gameObject.SetActive(isActive);
  20. }
  21. #endregion
  22. }
  23. }