/// <summary> /// 设置当前面板的功能模式 /// </summary> /// <param name="mode"></param> private void SetPanelMode(PropPanelMode mode, bool force = false) { if (m_em_panelMode == mode && !force) { return; } UITabGrid tab = null; if (null != m_dic_panelTab && m_dic_panelTab.TryGetValue(m_em_panelMode, out tab)) { tab.SetHightLight(false); } m_em_panelMode = mode; if (null != m_dic_panelTab && m_dic_panelTab.TryGetValue(m_em_panelMode, out tab)) { tab.SetHightLight(true); } UpdatePanelVisibleWidgets(); UpdatePanel(); ViewRemainTimeContent(false); }
/// <summary> /// 当前面板模式是否为modeh /// </summary> /// <param name="mode"></param> /// <returns></returns> private bool IsPanelMode(PropPanelMode mode) { return(m_em_panelMode == mode); }