// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved. using System.ComponentModel; using FlaxEngine; namespace FlaxEditor.Content.Settings { /// /// The Windows platform settings asset archetype. Allows to edit asset via editor. /// public class WindowsPlatformSettings : SettingsBase { /// /// The default game window mode. /// [DefaultValue(GameWindowMode.Windowed)] [EditorOrder(10), EditorDisplay("Window"), Tooltip("The default game window mode.")] public GameWindowMode WindowMode = GameWindowMode.Windowed; /// /// The default game window width (in pixels). /// [DefaultValue(1280)] [EditorOrder(20), EditorDisplay("Window"), Tooltip("The default game window width (in pixels).")] public int ScreenWidth = 1280; /// /// The default game window height (in pixels). /// [DefaultValue(720)] [EditorOrder(30), EditorDisplay("Window"), Tooltip("The default game window height (in pixels).")] public int ScreenHeight = 720; /// /// Enables resizing the game window by the user. /// [DefaultValue(false)] [EditorOrder(40), EditorDisplay("Window"), Tooltip("Enables resizing the game window by the user.")] public bool ResizableWindow = false; /// /// Enables game running when application window loses focus. /// [DefaultValue(false)] [EditorOrder(1010), EditorDisplay("Other", "Run In Background"), Tooltip("Enables game running when application window loses focus.")] public bool RunInBackground = false; /// /// Limits maximum amount of concurrent game instances running to one, otherwise user may launch application more than once. /// [DefaultValue(false)] [EditorOrder(1020), EditorDisplay("Other"), Tooltip("Limits maximum amount of concurrent game instances running to one, otherwise user may launch application more than once.")] public bool ForceSingleInstance = false; /// /// Custom icon texture to use for the application (overrides the default one). /// [DefaultValue(null)] [EditorOrder(1030), EditorDisplay("Other"), Tooltip("Custom icon texture to use for the application (overrides the default one).")] public Texture OverrideIcon; /// /// Enables support for DirectX 12. Disabling it reduces compiled shaders count. /// [DefaultValue(false)] [EditorOrder(2000), EditorDisplay("Graphics", "Support DirectX 12"), Tooltip("Enables support for DirectX 12. Disabling it reduces compiled shaders count.")] public bool SupportDX12 = false; /// /// Enables support for DirectX 11. Disabling it reduces compiled shaders count. /// [DefaultValue(true)] [EditorOrder(2010), EditorDisplay("Graphics", "Support DirectX 11"), Tooltip("Enables support for DirectX 11. Disabling it reduces compiled shaders count.")] public bool SupportDX11 = true; /// /// Enables support for DirectX 10 and DirectX 10.1. Disabling it reduces compiled shaders count. /// [DefaultValue(false)] [EditorOrder(2020), EditorDisplay("Graphics", "Support DirectX 10"), Tooltip("Enables support for DirectX 10 and DirectX 10.1. Disabling it reduces compiled shaders count.")] public bool SupportDX10 = false; /// /// Enables support for Vulkan. Disabling it reduces compiled shaders count. /// [DefaultValue(false)] [EditorOrder(2030), EditorDisplay("Graphics", "Support Vulkan"), Tooltip("Enables support for Vulkan. Disabling it reduces compiled shaders count.")] public bool SupportVulkan = false; } }