123456789101112131415161718192021222324252627 |
- using FairyGUI;
- using XGame.Framework.UI;
- namespace XGame.Framework.FGUI
- {
- public class FguiPanel : IUIPanel
- {
- private GComponent _panel;
- private UILayer _layer;
- public FguiPanel(GComponent uiPanel, UILayer layer)
- {
- _panel = uiPanel;
- _layer = layer;
- }
- public GComponent Panel => _panel;
- #region IUIPanel 接口实现
- UILayer IUIPanel.Layer => _layer;
- void IUIPanel.SetActive(bool isActive)
- {
- //_panel.enabled: 为false时不隐藏,会做灰度处理
- _panel.displayObject.visible = isActive;
- }
- #endregion
- }
- }
|