better size of Utilities

This commit is contained in:
in0finite 2019-07-29 00:58:50 +02:00
parent fc19910b3e
commit d138ac9a66

View file

@ -23,12 +23,12 @@ namespace SanAndreasUnity.UI {
// adjust rect
float width = 240;
float height = 210;
if (Utilities.F.ScreenHasHighDensity)
{
width *= 1.33f;
width = Mathf.Min(width, Screen.width * 0.3f);
width = Screen.width * 0.375f;
height = Screen.height * 0.4f;
}
float height = width * 0.9f;
this.windowRect = new Rect(Screen.width / 2 - width / 2, 10, width, height);
}