using UnityEngine;

namespace ChillConnect
{
    public static class UIInfoConst
    {
        public static Color DefaultUIMaskColor = new Color(0, 0, 0, 0.88f);
    }

    public class UIInfo
    {
        public string packageName = null;
        public string assetName = null;
        public UILayerType layerType = UILayerType.Normal;
        public UIGComType gComType = UIGComType.GComponent;
        public uint closeUIMsgId = 0;
        public bool isSwitchSceneCloseUI = false;
        public bool isTickUpdate = false;
        public bool isClosetWorldRaycast = false;
        public bool isNeedOpenAnim = false;
        public bool isNeedCloseAnim = false;
        public bool isNeedUIMask = false;
        public bool isNeedUIMaskCloseEvent = false;
        public Color uiMaskCustomColor = UIInfoConst.DefaultUIMaskColor;
    }

    public enum UILayerType
    {
        Background = 0,
        Bottom = 1,

        Normal = 2,
        Top = 3,

        FullScreen = 4,
        Popup = 5,

        Highest = 6,
        Animation = 7,
        Tips = 8,

        Loading = 9,
        System = 10,
    }

    public enum UIGComType
    {
        GComponent = 0,
        Window = 1,
    }
}