Ejemplo n.º 1
0
        public int RequireNextPanelSortingOrder(PanelShowMode showMode)
        {
            switch (showMode)
            {
            case PanelShowMode.Normal:
                m_NormalPanelOrder += 10;
                return(m_NormalPanelOrder);

            case PanelShowMode.Pop:
                m_PopPanelOrder += 10;
                return(m_PopPanelOrder);

            case PanelShowMode.HideOther:
                return(0);

            default:
                break;
            }

            return(m_NormalPanelOrder);
        }
Ejemplo n.º 2
0
 public PanelData(int id, string name, bool abMode, PanelShowMode showMode = PanelShowMode.Normal)
     : base(id, name, abMode)
 {
     m_PanelShowMode = showMode;
 }
Ejemplo n.º 3
0
 //目前只开放一个增加数据的函数,不同的T类型转换为int类型需注意大小
 public static void AddPanelData <T>(T uiID, string name, PanelShowMode showMode = PanelShowMode.Normal) where T : IConvertible
 {
     Add(new PanelData(uiID.ToInt32(null), name, s_IsABMode, showMode));
 }