mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-23 12:33:02 +00:00
better size of Utilities
This commit is contained in:
parent
fc19910b3e
commit
d138ac9a66
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue