12345678910111213141516171819202122232425262728293031323334353637 |
- using UnityEngine;
- using XGame.Framework.Interfaces;
- namespace XGame.Framework.UI
- {
- /// <summary>
- /// 嵌套UI
- /// </summary>
- public interface INestedView : IActiveable
- {
- public Vector3 LocalPosition { get; set; }
- public Vector3 Position { get; set; }
- public Vector3 Rotation { get; set; }
- }
- /// <summary>
- /// 框架用INestedView接口
- /// </summary>
- public interface INestedInternal : INestedView
- {
- IUINested Nested { get; }
- /// <summary>
- /// 初始化
- /// </summary>
- /// <param name="context"></param>
- /// <param name="nested"></param>
- /// <param name="isStatic">是否是静态的(其他预制的子节点)</param>
- void Init(UIContext context, IUINested nested, bool isStatic);
- /// <summary>
- /// 父节点显示时尝试激活子节点
- /// </summary>
- /// <param name="intent"></param>
- void EnableByParent(object intent = null);
- /// <summary>
- /// 父节点隐藏时尝试隐藏子节点
- /// </summary>
- void DisableByParent();
- }
- }
|