parent
947bdc83f0
commit
f8294dff94
@ -0,0 +1,17 @@
|
||||
namespace CMSGame.Helpers
|
||||
{
|
||||
internal static class DisplayServerHelper
|
||||
{
|
||||
public static void ApplyAndPersistResolutionSettings(bool useFullScreen)
|
||||
{
|
||||
if (useFullScreen)
|
||||
{
|
||||
DisplayServer.WindowSetMode(DisplayServer.WindowMode.Fullscreen);
|
||||
}
|
||||
else
|
||||
{
|
||||
DisplayServer.WindowSetMode(DisplayServer.WindowMode.Windowed);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
namespace CMSGame
|
||||
namespace CMSGame.Models
|
||||
{
|
||||
public record class GameSettings
|
||||
{
|
Loading…
Reference in new issue