Skip to content

Commit debae9b

Browse files
committed
fix(HUD and GUIConsole): Moved HUD up and adjusted GUIConsole to match
1 parent d78fe19 commit debae9b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Assets/Mirror/Components/GUIConsole.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public LogEntry(string message, LogType type)
3232
public class GUIConsole : MonoBehaviour
3333
{
3434
public int height = 80;
35-
public int offsetY = 40;
35+
public int offsetY = 10;
3636

3737
// only keep the recent 'n' entries. otherwise memory would grow forever
3838
// and drawing would get slower and slower.
@@ -111,7 +111,7 @@ void OnGUI()
111111
if (!visible) return;
112112

113113
// If this offset is changed, also change width in NetworkManagerHUD::OnGUI
114-
int offsetX = 300 + 20;
114+
int offsetX = 430 + 20;
115115

116116
GUILayout.BeginArea(new Rect(offsetX, offsetY, Screen.width - offsetX - 10, height));
117117

Assets/Mirror/Core/NetworkManagerHUD.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ void Awake()
2323
void OnGUI()
2424
{
2525
// If this width is changed, also change offsetX in GUIConsole::OnGUI
26-
int width = 300;
26+
int width = 430;
2727

28-
GUILayout.BeginArea(new Rect(10 + offsetX, 40 + offsetY, width, 9999));
28+
GUILayout.BeginArea(new Rect(10 + offsetX, 10 + offsetY, width, 9999));
2929

3030
if (!NetworkClient.isConnected && !NetworkServer.active)
3131
StartButtons();

0 commit comments

Comments
 (0)