Files
2026-11-24 23:40:08 +03:00

14 lines
443 B
C#

namespace VibranceHud.Theming;
public static class BackgroundMotionPolicy
{
public static bool ShouldPlay(bool pictureMoves, bool windowVisible, bool minimized, bool inForeground, bool gameRunning, bool goingAway, bool reducedMotion, bool movingOrSizing = false)
{
if ((((pictureMoves & windowVisible) && !minimized) & inForeground) && !gameRunning && !goingAway && !reducedMotion)
{
return !movingOrSizing;
}
return false;
}
}