From be0d4a87d3c8e039f6702748fa3335438187cd73 Mon Sep 17 00:00:00 2001 From: Arc <2973564608@qq.com> Date: Wed, 14 May 2025 00:52:57 +0800 Subject: [PATCH 1/2] Draft --- sources/engine/Stride.Games/GameWindow.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sources/engine/Stride.Games/GameWindow.cs b/sources/engine/Stride.Games/GameWindow.cs index e1e149ccd9..709f71d16a 100644 --- a/sources/engine/Stride.Games/GameWindow.cs +++ b/sources/engine/Stride.Games/GameWindow.cs @@ -114,7 +114,7 @@ public abstract class GameWindow : ComponentBase /// Gets or sets a value indicating whether the mouse pointer is visible over this window. /// /// true if this instance is mouse visible; otherwise, false. - public abstract bool IsMouseVisible { get; set; } + public abstract bool IsMouseVisible { get; set; } /// /// Gets the native window. @@ -127,6 +127,7 @@ public abstract class GameWindow : ComponentBase /// /// true if visible; otherwise, false. public abstract bool Visible { get; set; } + /// /// Gets or sets the position of the window on the screen. @@ -138,6 +139,12 @@ public abstract class GameWindow : ComponentBase /// /// true if this window has a border; otherwise, false. public abstract bool IsBorderLess { get; set; } + + /// + /// Gets or sets a value indicating whether this window background is transparent. + /// + /// true if this window background is transparent; otherwise, false. + public abstract bool IsBackGroundTransparent { get; set; } /// /// Gets or sets the title of the window. From a8760692df917c0da23e9702ca2b205924dbfda1 Mon Sep 17 00:00:00 2001 From: Arc <2973564608@qq.com> Date: Wed, 14 May 2025 00:58:35 +0800 Subject: [PATCH 2/2] Add Base Prop. --- sources/engine/Stride.Games/Desktop/GameWindowWinforms.cs | 2 ++ sources/engine/Stride.Games/SDL/GameWindowSDL.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sources/engine/Stride.Games/Desktop/GameWindowWinforms.cs b/sources/engine/Stride.Games/Desktop/GameWindowWinforms.cs index 5cd805665d..476dd257cc 100644 --- a/sources/engine/Stride.Games/Desktop/GameWindowWinforms.cs +++ b/sources/engine/Stride.Games/Desktop/GameWindowWinforms.cs @@ -334,6 +334,8 @@ public override bool IsBorderLess } } } + + public override bool IsBackGroundTransparent { get; set; } private void UpdateFormBorder() { diff --git a/sources/engine/Stride.Games/SDL/GameWindowSDL.cs b/sources/engine/Stride.Games/SDL/GameWindowSDL.cs index 4baa81c48e..77da745ab5 100644 --- a/sources/engine/Stride.Games/SDL/GameWindowSDL.cs +++ b/sources/engine/Stride.Games/SDL/GameWindowSDL.cs @@ -305,6 +305,8 @@ public override bool IsBorderLess } } } + + public override bool IsBackGroundTransparent { get; set; } private void UpdateFormBorder() {