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; }
void CDialogHolder::StartMenu (CUIDialogWnd* pDialog, bool bDoHideIndicators) { R_ASSERT ( !pDialog->IsShown() ); AddDialogToRender (pDialog); SetMainInputReceiver (pDialog, false); if(UseIndicators()) { bool b = !!psHUD_Flags.test(HUD_CROSSHAIR_RT); m_input_receivers.back().m_flags.set(recvItem::eCrosshair, b); b = HUD().GetUI()->GameIndicatorsShown(); m_input_receivers.back().m_flags.set(recvItem::eIndicators, b); if(bDoHideIndicators){ psHUD_Flags.set (HUD_CROSSHAIR_RT, FALSE); HUD().GetUI ()->HideGameIndicators(); } } pDialog->SetHolder (this); pDialog->Show (); if( pDialog->NeedCursor() ) GetUICursor()->Show(); if(g_pGameLevel){ CActor* A = smart_cast<CActor*>( Level().CurrentViewEntity() ); if ( A && pDialog->StopAnyMove() ) { A->StopAnyMove (); A->PickupModeOff (); }; if(A) A->IR_OnKeyboardRelease (kWPN_ZOOM); } }