public AGSGameSettings(string title, AGS.API.Size virtualResolution, WindowState windowState = WindowState.Maximized, AGS.API.Size?windowSize = null, VsyncMode vsync = VsyncMode.Adaptive, bool preserveAspectRatio = true, WindowBorder windowBorder = WindowBorder.Resizable) { Title = title; VirtualResolution = virtualResolution; WindowState = windowState; WindowSize = windowSize.HasValue ? windowSize.Value : virtualResolution; Vsync = vsync; PreserveAspectRatio = preserveAspectRatio; WindowBorder = windowBorder; Defaults = new AGSDefaultsSettings(); }
public AGSGameSettings(string title, Size virtualResolution, WindowState windowState = WindowState.Maximized, Size?windowSize = null, VsyncMode vsync = VsyncMode.Adaptive, bool preserveAspectRatio = true, WindowBorder windowBorder = WindowBorder.Resizable) { Title = title; VirtualResolution = virtualResolution; WindowState = windowState; WindowSize = windowSize.HasValue ? windowSize.Value : virtualResolution; Vsync = vsync; PreserveAspectRatio = preserveAspectRatio; WindowBorder = windowBorder; var fonts = new AGSDefaultFonts(); var dialogs = new AGSDialogSettings(AGSGame.Device, fonts); Defaults = new AGSDefaultsSettings(fonts, dialogs); }