Add interface for gui handling so plugins can determine if inputs are being blocked or if the mouse is being drawn (etc)
All checks were successful
Build / Compute Version (push) Successful in 6s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 40s
Build / Build Nuget package (NuGet) (push) Successful in 1m2s
Build / Build Nuget package (SharedCringe) (push) Successful in 1m2s
Build / Build Nuget package (CringePlugins) (push) Successful in 1m18s
Build / Build Launcher (push) Successful in 1m55s
All checks were successful
Build / Compute Version (push) Successful in 6s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 40s
Build / Build Nuget package (NuGet) (push) Successful in 1m2s
Build / Build Nuget package (SharedCringe) (push) Successful in 1m2s
Build / Build Nuget package (CringePlugins) (push) Successful in 1m18s
Build / Build Launcher (push) Successful in 1m55s
This commit is contained in:
23
CringePlugins/Abstractions/IGuiHandler.cs
Normal file
23
CringePlugins/Abstractions/IGuiHandler.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
namespace CringePlugins.Abstractions;
|
||||
public interface IGuiHandler
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether or not the Gui Handler is blocking keys from the game's input system.
|
||||
/// </summary>
|
||||
bool BlockKeys { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the Gui Handler is blocking mouse input (excluding position) from the game's input system.
|
||||
/// </summary>
|
||||
bool BlockMouse { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the Gui Handler is drawing the mouse cursor via keybinds (does not include when the game is drawing the mouse cursor).
|
||||
/// </summary>
|
||||
bool DrawMouse { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the Gui Handler is initialized.
|
||||
/// </summary>
|
||||
bool Initialized { get; }
|
||||
}
|
Reference in New Issue
Block a user