Set minimum resolution and resolution curve

- Set minimum resolution to (1,1) and minimum keyframe of the Resolution Curve to (0,0)
- Also added float literals
This commit is contained in:
Paul Adrian
2024-10-31 20:26:02 -05:00
parent c0a1563402
commit 9f8989b969

View File

@@ -99,7 +99,7 @@ namespace FlaxEngine.GUI
private float _scale = 1.0f;
private float _scaleFactor = 1.0f;
private float _physicalUnitSize = 1.0f;
private Float2 _resolutionMin = new Float2(640, 480);
private Float2 _resolutionMin = new Float2(1, 1);
private Float2 _resolutionMax = new Float2(7680, 4320);
/// <summary>
@@ -246,10 +246,11 @@ namespace FlaxEngine.GUI
#endif
public LinearCurve<float> ResolutionCurve = new LinearCurve<float>(new[]
{
new LinearCurve<float>.Keyframe(480, 0.444f), // 480p
new LinearCurve<float>.Keyframe(720, 0.666f), // 720p
new LinearCurve<float>.Keyframe(1080, 1.0f), // 1080p
new LinearCurve<float>.Keyframe(8640, 8.0f), // 8640p
new LinearCurve<float>.Keyframe(0f, 0f), // 0p
new LinearCurve<float>.Keyframe(480f, 0.444f), // 480p
new LinearCurve<float>.Keyframe(720f, 0.666f), // 720p
new LinearCurve<float>.Keyframe(1080f, 1.0f), // 1080p
new LinearCurve<float>.Keyframe(8640f, 8.0f), // 8640p
});
/// <summary>