void CDialogHolder::StopMenu (CUIDialogWnd* pDialog) { R_ASSERT( pDialog->IsShown() ); if( MainInputReceiver()==pDialog ) { if(UseIndicators()) { bool b = !!m_input_receivers.back().m_flags.test(recvItem::eCrosshair); psHUD_Flags.set (HUD_CROSSHAIR_RT, b); b = !!m_input_receivers.back().m_flags.test(recvItem::eIndicators); if(b) HUD().GetUI()->ShowGameIndicators(); else HUD().GetUI()->HideGameIndicators(); } RemoveDialogToRender (pDialog); SetMainInputReceiver (NULL,false); pDialog->SetHolder (NULL); pDialog->Hide (); }else{ RemoveDialogToRender (pDialog); SetMainInputReceiver (pDialog, true); pDialog->SetHolder (NULL); pDialog->Hide (); } if(!MainInputReceiver() || !MainInputReceiver()->NeedCursor() ) GetUICursor()->Hide(); }
void CUIGameDM::ShowPlayersList(bool bShow) { if (bShow && m_pTeamPanels) AddDialogToRender(m_pTeamPanels); else RemoveDialogToRender(m_pTeamPanels); }
void CUIGameCTA::ShowTeamPanels(bool bShow) { if (bShow) { AddDialogToRender(teamPanels); } else { RemoveDialogToRender(teamPanels); } m_team_panels_shown = bShow; }