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