Ejemplo n.º 1
0
 public void ShowPanel(PUID u_id)
 {
     if (this.mPanelTable.ContainsKey(u_id))
     {
         this.curPanel = (Panel_Basic)this.mPanelTable[u_id];
         if (this.curPanel.type == PanelType.Normal)
         {
             for (int i = 0; i < this.allPanels.Length; i++)
             {
                 if (this.allPanels[i].IsShowing() && this.allPanels[i].type == PanelType.Normal)
                 {
                     this.allPanels[i].Hide();
                 }
             }
         }
         else
         {
             if (this.curPanel.type == PanelType.Popup)
             {
                 this.mPopupPanelStack.Push(this.curPanel);
             }
         }
         this.curPanel.Show();
     }
 }
Ejemplo n.º 2
0
 public void CloseAllPopupPanel()
 {
     while (this.mPopupPanelStack.Count > 0)
     {
         Panel_Basic panel_Basic = (Panel_Basic)this.mPopupPanelStack.Pop();
         this.HidePanel(panel_Basic.uID);
     }
     this.mPopupPanelStack.Clear();
 }