From 9047ead0c34775e28b54cdbe236ab682d8c0f652 Mon Sep 17 00:00:00 2001 From: ManlyMarco <39247311+ManlyMarco@users.noreply.github.com> Date: Thu, 28 Dec 2023 23:41:38 +0100 Subject: [PATCH] Add ConfigurationManager.IsWindowFullscreen --- ConfigurationManager.Shared/ConfigurationManager.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ConfigurationManager.Shared/ConfigurationManager.cs b/ConfigurationManager.Shared/ConfigurationManager.cs index 313907c..d29de78 100644 --- a/ConfigurationManager.Shared/ConfigurationManager.cs +++ b/ConfigurationManager.Shared/ConfigurationManager.cs @@ -71,6 +71,11 @@ public class ConfigurationManager : BaseUnityPlugin internal Rect SettingWindowRect { get; private set; } private bool _windowWasMoved; + /// + /// Window is visible and is blocking the whole screen. This is true until the user moves the window, which lets it run while user interacts with the game. + /// + public bool IsWindowFullscreen => DisplayingWindow && !_windowWasMoved; + private bool _tipsPluginHeaderWasClicked, _tipsWindowWasMoved; private Rect _screenRect;