示例#1
0
 private IUISubWnd GetSubWnd(EMChartSubWndType wndType)
 {
     foreach (IUISubWnd wnd in m_SubWndList)
     {
         if (wnd.GetWndType() == (int)wndType)
         {
             return(wnd);
         }
     }
     return(null);
 }
示例#2
0
        public void SwitchWndPage(EMChartSubWndType pageType)
        {
            if (m_wndView == null)
            {
                return;
            }

            ShowSubWnd(pageType);
            m_CurrentWndType = pageType;

            m_wndView.SetButtonSelect(m_CurrentWndType);
        }
示例#3
0
 private void ShowSubWnd(EMChartSubWndType wndType)
 {
     foreach (IUISubWnd wnd in m_SubWndList)
     {
         if (wnd.GetWndType() == (int)wndType)
         {
             wnd.SetVisible(true);
         }
         else
         {
             wnd.SetVisible(false);
         }
     }
 }
示例#4
0
        public void SetButtonSelect(EMChartSubWndType wndType)
        {
            int nIndex = (int)wndType - topNode;

            ChartBtnGroup.SetItemSelectedItem(nIndex, true);
            for (int i = 0; i < ChartBtnList.Count; i++)
            {
                ChartBtnList[i].GetComponentInChildren <Text>().color = (i == nIndex ? SelectedBtnColor : UnSelectedBtnColor);
            }

            if (wndType == EMChartSubWndType.EMWNDTYPE_ROLE)
            {
                RefreshBtnInteractable();
            }
        }