bool CUIInput::OnActionStartPause(EntityId entityId, const ActionId& actionId, int activationMode, float value) { CUIMenuEvents* pMenuEvents = UIEvents::Get<CUIMenuEvents>(); if ( g_pGame->GetIGameFramework()->IsGameStarted() && pMenuEvents && !pMenuEvents->IsIngameMenuStarted()) { pMenuEvents->DisplayIngameMenu(true); } return false; }
bool CUIInput::OnActionTogglePause(EntityId entityId, const ActionId& actionId, int activationMode, float value) { CUIMenuEvents* pMenuEvents = UIEvents::Get<CUIMenuEvents>(); if (g_pGame->GetIGameFramework()->IsGameStarted() && pMenuEvents) { const bool bIsIngameMenu = pMenuEvents->IsIngameMenuStarted(); pMenuEvents->DisplayIngameMenu(!bIsIngameMenu); } return true; }