Exemple #1
0
        private void ShowOBPartUI(bool _showPart)
        {
            UISystem.Instance.ShowWnd(WndID.WND_ID_WAR_GAMEHUDTOPRIGHTVIEW, !_showPart);

            UIOBHideFramePart hidePart = new UIOBHideFramePart();

            hidePart.frame = _showPart ? (int)USpeedUI.WarObserver.WarOBUIPartType.BUTTEN_LEFT_PART : 0;
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_WAR_OBSERVER_HIDE_FRAME_PART, hidePart);
        }
Exemple #2
0
        public void HideFramePart(UIOBHideFramePart msg)
        {
            if (msg == null)
            {
                return;
            }

            foreach (var item in m_dicPart)
            {
                item.Value.SetActive(((int)item.Key & msg.frame) == 0);
            }
        }