Add UI Scale dropdown to the settings menu.

This commit is contained in:
Paul Chote
2020-01-30 22:31:00 +00:00
committed by teinarss
parent 6388a6bff4
commit 9a0916afbb
8 changed files with 150 additions and 3 deletions

View File

@@ -10,6 +10,7 @@
#endregion
using System.Collections.Generic;
using OpenRA.Primitives;
namespace OpenRA
{
@@ -23,6 +24,8 @@ namespace OpenRA
public readonly int MaxZoomWindowHeight = 240;
public readonly bool AllowNativeZoom = true;
public readonly Size MinEffectiveResolution = new Size(1024, 720);
public int2 GetSizeRange(WorldViewport distance)
{
return distance == WorldViewport.Close ? CloseWindowHeights