12345678910111213141516171819202122232425262728293031323334 |
- namespace XGame.Framework.UI
- {
- /// <summary>
- /// UI操作接口
- /// UGUI、FGUI组件的操作在该接口的实现类里
- /// </summary>
- public interface IUIViewModel
- {
- void AddChild(INestedView nestedView);
- void RemoveChild(INestedView nestedView);
- }
- public interface IUIViewModelSetter
- {
- IUIViewModel ViewModel { set; }
- }
- public interface IUIVMInternal
- {
- void Init(IUIPanel panel, IUIViewAdapter adapter);
- void Init(IUINested nested, IUIViewAdapter adapter);
- /// <summary>
- /// 激活嵌套UI
- /// 先父后子递归执行
- /// 只有嵌套UI的节点是显示状态才会被激活
- /// </summary>
- /// <param name="intent"></param>
- void EnableChildren(object intent = null);
- /// <summary>
- /// 隐藏嵌套UI
- /// 先子后父递归执行
- /// 只有嵌套UI的节点是显示状态才会被隐藏
- /// </summary>
- void DisableChildren();
- }
- }
|