ImGui: Don't show overlays when system paused
This commit is contained in:
@@ -49,14 +49,15 @@ static bool s_save_state_selector_ui_open = false;
|
|||||||
|
|
||||||
void ImGuiManager::RenderOverlays()
|
void ImGuiManager::RenderOverlays()
|
||||||
{
|
{
|
||||||
if (System::IsValid())
|
const System::State state = System::GetState();
|
||||||
|
if (state != System::State::Shutdown)
|
||||||
{
|
{
|
||||||
DrawPerformanceOverlay();
|
DrawPerformanceOverlay();
|
||||||
|
|
||||||
if (g_settings.display_show_enhancements)
|
if (g_settings.display_show_enhancements && state != System::State::Paused)
|
||||||
DrawEnhancementsOverlay();
|
DrawEnhancementsOverlay();
|
||||||
|
|
||||||
if (g_settings.display_show_inputs)
|
if (g_settings.display_show_inputs && state != System::State::Paused)
|
||||||
DrawInputsOverlay();
|
DrawInputsOverlay();
|
||||||
|
|
||||||
if (s_save_state_selector_ui_open)
|
if (s_save_state_selector_ui_open)
|
||||||
|
|||||||
Reference in New Issue
Block a user