98 lines
3.5 KiB
C#
98 lines
3.5 KiB
C#
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
|
|
|
using System;
|
|
using System.ComponentModel;
|
|
using FlaxEngine;
|
|
|
|
namespace FlaxEditor.Content.Settings
|
|
{
|
|
/// <summary>
|
|
/// The Universal Windows Platform (UWP) platform settings asset archetype. Allows to edit asset via editor.
|
|
/// </summary>
|
|
public class UWPPlatformSettings : SettingsBase
|
|
{
|
|
/// <summary>
|
|
/// The preferred launch windowing mode.
|
|
/// </summary>
|
|
public enum WindowMode
|
|
{
|
|
/// <summary>
|
|
/// The full screen mode
|
|
/// </summary>
|
|
FullScreen = 0,
|
|
|
|
/// <summary>
|
|
/// The view size.
|
|
/// </summary>
|
|
ViewSize = 1,
|
|
}
|
|
|
|
/// <summary>
|
|
/// The display orientation modes. Can be combined as flags.
|
|
/// </summary>
|
|
[Flags]
|
|
public enum DisplayOrientations
|
|
{
|
|
/// <summary>
|
|
/// The none.
|
|
/// </summary>
|
|
None = 0,
|
|
|
|
/// <summary>
|
|
/// The landscape.
|
|
/// </summary>
|
|
Landscape = 1,
|
|
|
|
/// <summary>
|
|
/// The landscape flipped.
|
|
/// </summary>
|
|
LandscapeFlipped = 2,
|
|
|
|
/// <summary>
|
|
/// The portrait.
|
|
/// </summary>
|
|
Portrait = 4,
|
|
|
|
/// <summary>
|
|
/// The portrait flipped.
|
|
/// </summary>
|
|
PortraitFlipped = 8,
|
|
}
|
|
|
|
/// <summary>
|
|
/// The preferred launch windowing mode. Always fullscreen on Xbox.
|
|
/// </summary>
|
|
[DefaultValue(WindowMode.FullScreen)]
|
|
[EditorOrder(10), EditorDisplay("Window"), Tooltip("The preferred launch windowing mode. Always fullscreen on Xbox.")]
|
|
public WindowMode PreferredLaunchWindowingMode = WindowMode.FullScreen;
|
|
|
|
/// <summary>
|
|
/// The display orientation modes. Can be combined as flags.
|
|
/// </summary>
|
|
[DefaultValue(DisplayOrientations.Landscape | DisplayOrientations.LandscapeFlipped | DisplayOrientations.Portrait | DisplayOrientations.PortraitFlipped)]
|
|
[EditorOrder(20), EditorDisplay("Window"), Tooltip("The display orientation modes. Can be combined as flags.")]
|
|
public DisplayOrientations AutoRotationPreferences = DisplayOrientations.Landscape | DisplayOrientations.LandscapeFlipped | DisplayOrientations.Portrait | DisplayOrientations.PortraitFlipped;
|
|
|
|
/// <summary>
|
|
/// The location of the package certificate (relative to the project).
|
|
/// </summary>
|
|
[DefaultValue("")]
|
|
[EditorOrder(1010), EditorDisplay("Other"), Tooltip("The location of the package certificate (relative to the project).")]
|
|
public string CertificateLocation = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Enables support for DirectX 11. Disabling it reduces compiled shaders count.
|
|
/// </summary>
|
|
[DefaultValue(true)]
|
|
[EditorOrder(2000), EditorDisplay("Graphics", "Support DirectX 11"), Tooltip("Enables support for DirectX 11. Disabling it reduces compiled shaders count.")]
|
|
public bool SupportDX11 = true;
|
|
|
|
/// <summary>
|
|
/// Enables support for DirectX 10 and DirectX 10.1. Disabling it reduces compiled shaders count.
|
|
/// </summary>
|
|
[DefaultValue(false)]
|
|
[EditorOrder(2010), 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;
|
|
}
|
|
}
|