Skip to content

Commit

Permalink
Add ConfigurationManager.IsWindowFullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Dec 28, 2023
1 parent e10c4a1 commit 9047ead
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ConfigurationManager.Shared/ConfigurationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ public class ConfigurationManager : BaseUnityPlugin
internal Rect SettingWindowRect { get; private set; }
private bool _windowWasMoved;

/// <summary>
/// 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.
/// </summary>
public bool IsWindowFullscreen => DisplayingWindow && !_windowWasMoved;

private bool _tipsPluginHeaderWasClicked, _tipsWindowWasMoved;

private Rect _screenRect;
Expand Down

0 comments on commit 9047ead

Please sign in to comment.
  翻译: