mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:50:43 -05:00
Adjusted window draw logic
This commit is contained in:
parent
ce9ca17948
commit
ddfd5c36a5
@ -45,7 +45,16 @@ namespace SPT.Custom.Utils
|
||||
GUI.skin.window.alignment = TextAnchor.MiddleCenter;
|
||||
GUI.skin.window.normal.background = bgTexture;
|
||||
GUI.backgroundColor = Color.black;
|
||||
GUI.Window(0, new Rect((Screen.width / 2) - 200, (Screen.height / 2) + 200, 500, 80), DrawWindow, "Bundle Loading");
|
||||
|
||||
int nWindowWidth = 500;
|
||||
int nWindowHeight = 80;
|
||||
GUI.Window(0,
|
||||
new Rect((Screen.width / 2) - (nWindowWidth / 2),
|
||||
(Screen.height / 2) - (nWindowHeight / 2),
|
||||
nWindowWidth,
|
||||
nWindowHeight),
|
||||
DrawWindow,
|
||||
"Bundle Loading");
|
||||
}
|
||||
|
||||
private void DrawWindow(int windowId)
|
||||
|
Loading…
x
Reference in New Issue
Block a user