Skip to content

Commit 5d83660

Browse files
committed
Build-022 Auto-Commit
1 parent 875c0be commit 5d83660

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

PawMapLoader/Init/UpdateRegisters.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public class UpdateRegisters
99
public static void Register()
1010
{
1111
Store.Udevnt += () => PawScriptRegister.lastFrameTime = Time.timeAsDouble;
12+
Res.GUI.PawScriptConsole.Register();
1213
}
1314
}
1415
}

PawMapLoader/Res/GUI/PawScriptConsole.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace PawMapLoader.Res.GUI
66
{
7+
// This GUI crashes the game and I don't know why.
8+
79
public class PawScriptConsole
810
{
911
public static void Register()
@@ -40,7 +42,7 @@ public static void DrawConsole(int wid)
4042
{
4143
GUILayout.BeginVertical();
4244

43-
GUILayout.BeginScrollView(ScrollPos, GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(true));
45+
ScrollPos = GUILayout.BeginScrollView(ScrollPos, GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(true));
4446
foreach (var line in Logs)
4547
{
4648
GUILayout.Label(line);
@@ -57,7 +59,7 @@ public static void DrawConsole(int wid)
5759
GUILayout.EndHorizontal();
5860
GUILayout.EndVertical();
5961

60-
UnityEngine.GUI.DragWindow(new Rect(0, 0, ConsoleRect.width, ConsoleRect.height*0.08f));
62+
UnityEngine.GUI.DragWindow();
6163
}
6264

6365
public static void HandleInput(string input)

0 commit comments

Comments
 (0)