feat: rounded corners for display
This commit is contained in:
parent
a47aee1561
commit
e4ad9cc2f1
23 changed files with 337 additions and 282 deletions
|
@ -9,10 +9,15 @@ namespace View {
|
|||
#if !UNITY_EDITOR
|
||||
AppWindowUtility.AlwaysOnTop = true;
|
||||
AppWindowUtility.FrameVisibility = false;
|
||||
AppWindowUtility.Transparent = true;
|
||||
|
||||
//Vector2Int resolution = new(360, 640);
|
||||
Vector2Int resolution = new(360, 540);
|
||||
AppWindowUtility.ResizeWindow(resolution.x, resolution.y);
|
||||
Vector2Int displaySize = new(Screen.currentResolution.width, Screen.currentResolution.height);
|
||||
const float aspect = 10f / 15f;
|
||||
int windowHeight = (int)(displaySize.y * .45f);
|
||||
int windowWidth = (int)(windowHeight * aspect);
|
||||
int margin = (int)(displaySize.x * .01f);
|
||||
AppWindowUtility.ResizeWindow(windowWidth, windowHeight);
|
||||
AppWindowUtility.MoveWindow(displaySize.x - windowWidth - margin, margin);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue