private IUISubWnd GetSubWnd(EMChartSubWndType wndType) { foreach (IUISubWnd wnd in m_SubWndList) { if (wnd.GetWndType() == (int)wndType) { return(wnd); } } return(null); }
public void SwitchWndPage(EMChartSubWndType pageType) { if (m_wndView == null) { return; } ShowSubWnd(pageType); m_CurrentWndType = pageType; m_wndView.SetButtonSelect(m_CurrentWndType); }
private void ShowSubWnd(EMChartSubWndType wndType) { foreach (IUISubWnd wnd in m_SubWndList) { if (wnd.GetWndType() == (int)wndType) { wnd.SetVisible(true); } else { wnd.SetVisible(false); } } }
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(); } }