Mouse.Visibility no longer affects Game.IsMenu (fixes issue where pause menu can't be interacted with in some games) (#3583)

This commit is contained in:
Carson Kompon
2025-12-10 08:20:07 -05:00
committed by GitHub
parent 0d5eccf4e2
commit 96ae37b705

View File

@@ -283,7 +283,7 @@ internal class UISystem
bool DoAnyPanelsWantMouseVisible()
{
if ( Mouse.Visibility == MouseVisibility.Visible ) return true;
if ( Mouse.Visibility == MouseVisibility.Hidden ) return false;
if ( Mouse.Visibility == MouseVisibility.Hidden && !Game.IsMenu ) return false;
for ( int i = 0; i < RootPanels.Count; i++ )
{