mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-15 14:52:35 +02:00
Add RequestWindowAttention API.
This commit is contained in:
@@ -468,6 +468,11 @@ namespace Robust.Client.Graphics.Clyde
|
||||
GLFW.SetWindowTitle(_glfwWindow, title);
|
||||
}
|
||||
|
||||
public void RequestWindowAttention()
|
||||
{
|
||||
GLFW.RequestWindowAttention(_glfwWindow);
|
||||
}
|
||||
|
||||
public void ProcessInput(FrameEventArgs frameEventArgs)
|
||||
{
|
||||
GLFW.PollEvents();
|
||||
|
||||
@@ -58,6 +58,11 @@ namespace Robust.Client.Graphics.Clyde
|
||||
// Nada.
|
||||
}
|
||||
|
||||
public void RequestWindowAttention()
|
||||
{
|
||||
// Nada.
|
||||
}
|
||||
|
||||
public override bool Initialize()
|
||||
{
|
||||
return true;
|
||||
|
||||
@@ -14,6 +14,12 @@ namespace Robust.Client.Interfaces.Graphics
|
||||
|
||||
Vector2i ScreenSize { get; }
|
||||
void SetWindowTitle(string title);
|
||||
|
||||
/// <summary>
|
||||
/// This is the magic method to make the game window ping you in the task bar.
|
||||
/// </summary>
|
||||
void RequestWindowAttention();
|
||||
|
||||
event Action<WindowResizedEventArgs> OnWindowResized;
|
||||
|
||||
Texture LoadTextureFromPNGStream(Stream stream, string? name = null,
|
||||
|
||||
Reference in New Issue
Block a user