Example #1
0
 public void BackToHistory(PanelParamBase newPanelParam)
 {
     if (this.m_HistoryPanelStack.Count > 0)
     {
         this.OpenHistory(this.m_HistoryPanelStack.Pop(), newPanelParam);
     }
 }
Example #2
0
 public void BackToHistory(PanelParamBase newPanelParam)
 {
     if (this.m_HistoryPanelStack.Count > 0)
     {
         this.OpenHistory(this.m_HistoryPanelStack.Pop(), newPanelParam);
     }
 }
Example #3
0
    protected override void Open(PanelParamBase panelParam)
    {
        this.PlayerGrid.InitGrid(FightMgr.Instance.PlayerGrids);
        this.EnemyGrid.InitGrid(FightMgr.Instance.EnemyGrids);

        this.PlayerGrid.UpdateBattleArray(FightMgr.Instance.PlayerBattleArray);
        this.EnemyGrid.UpdateBattleArray(FightMgr.Instance.EnemyBattleArray);
    }
Example #4
0
 private void OpenHistory(HistoryPanelLogicData history, PanelParamBase newPanelParam)
 {
     this.Open(history.Panel, newPanelParam);
     if (history.SecondPanel != null)
     {
         this.OpenHistory(history.SecondPanel);
     }
 }
Example #5
0
    protected override void Open(PanelParamBase panelParam)
    {
        this.PlayerGrid.InitGrid(FightMgr.Instance.PlayerGrids);
        this.EnemyGrid.InitGrid(FightMgr.Instance.EnemyGrids);

        this.PlayerGrid.UpdateBattleArray(FightMgr.Instance.PlayerBattleArray);
        this.EnemyGrid.UpdateBattleArray(FightMgr.Instance.EnemyBattleArray);
    }
Example #6
0
 public void ChangeHistoryPanelParam(PanelParamBase param)
 {
     if (this.m_HistoryPanelStack.Count > 0)
     {
         HistoryPanelLogicData data = this.m_HistoryPanelStack.Pop();
         data.SetPanelParam(param);
         this.m_HistoryPanelStack.Push(data);
     }
 }
Example #7
0
 public void Open(PanelType type, PanelParamBase panelParam, PanelEffectType effectType, int depth)
 {
     this.ThisPanel = type;
     this.SetPanelDepth(depth);
     if (!this.IsInit) this.Init();
     this.InitPanel();
     this.Open(panelParam);
     this.PlayEffect(effectType);
 }
Example #8
0
 public void ChangeHistoryPanelParam(PanelParamBase param)
 {
     if (this.m_HistoryPanelStack.Count > 0)
     {
         HistoryPanelLogicData data = this.m_HistoryPanelStack.Pop();
         data.SetPanelParam(param);
         this.m_HistoryPanelStack.Push(data);
     }
 }
Example #9
0
 public void Open(PanelType type, PanelParamBase panelParam, PanelEffectType effectType, int depth)
 {
     this.ThisPanel = type;
     this.SetPanelDepth(depth);
     if (!this.IsInit)
     {
         this.Init();
     }
     this.InitPanel();
     this.Open(panelParam);
     this.PlayEffect(effectType);
 }
Example #10
0
    public void Open(PanelType type, PanelParamBase panelParam = null, PanelEffectType openEffectType = PanelEffectType.Open)
    {
        PanelBase panel    = null;
        int       newDepth = 0;

        if (this.m_OpenedPanelDic.ContainsKey(type))
        {
            panel    = this.m_OpenedPanelDic[type];
            newDepth = panel.GetDepth();
        }
        else
        {
            panel = PoolMgr.Instance.GetPanel(type);
            if (panel == null)
            {
                Debug.Log("Panel is null " + type);
                return;
            }
            panel.MyTransform.localPosition = Vector3.zero;
            this.m_OpenedPanelDic.Add(type, panel);
            newDepth = this.GetTopDepth() + 2;//加2的原因是为了保险起见,因为有的时候只加1可能会出现面板重叠
        }
        panel.Open(type, panelParam, openEffectType, newDepth);
    }
Example #11
0
 private void OpenHistory(HistoryPanelLogicData history, PanelParamBase newPanelParam)
 {
     this.Open(history.Panel, newPanelParam);
     if (history.SecondPanel != null)
     {
         this.OpenHistory(history.SecondPanel);
     }
 }
Example #12
0
 public void Open(PanelType type, PanelParamBase panelParam = null,PanelEffectType openEffectType = PanelEffectType.Open)
 {
     PanelBase panel = null;
     int newDepth = 0;
     if (this.m_OpenedPanelDic.ContainsKey(type))
     {
         panel = this.m_OpenedPanelDic[type];
         newDepth = panel.GetDepth();
     }
     else
     {
         panel = PoolMgr.Instance.GetPanel(type);
         if (panel == null)
         {
             Debug.Log("Panel is null " + type);
             return;
         }
         panel.MyTransform.localPosition = Vector3.zero;
         this.m_OpenedPanelDic.Add(type, panel);
         newDepth = this.GetTopDepth() + 2;//加2的原因是为了保险起见,因为有的时候只加1可能会出现面板重叠
     }
     panel.Open(type,panelParam, openEffectType, newDepth);
 }
Example #13
0
 public void SetPanelParam(PanelParamBase param)
 {
     this.PanelParam = param;
 }
Example #14
0
 protected abstract void Open(PanelParamBase panelParam);
 public HistoryPanelLogicData(PanelType panel, PanelParamBase param, HistoryPanelLogicData secondPanel)
 {
     this.Panel = panel;
     this.SetPanelParam(param);
     this.SetSecondPanel(secondPanel);
 }
Example #16
0
 protected abstract void Open(PanelParamBase panelParam);
 public HistoryPanelLogicData(PanelType panel, PanelParamBase param)
 {
     this.Panel = panel;
     this.SetPanelParam(param);
 }
Example #18
0
 public HistoryPanelLogicData(PanelType panel, PanelParamBase param)
 {
     this.Panel = panel;
     this.SetPanelParam(param);
 }
 public void SetPanelParam(PanelParamBase param)
 {
     this.PanelParam = param;
 }
Example #20
0
 public HistoryPanelLogicData(PanelType panel, PanelParamBase param, HistoryPanelLogicData secondPanel)
 {
     this.Panel = panel;
     this.SetPanelParam(param);
     this.SetSecondPanel(secondPanel);
 }