Skip to content

Commit

Permalink
Minor fixes to ModManager
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonFire47 committed Dec 9, 2023
1 parent 5a23e30 commit 2b51f07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PulsarModLoader/CustomGUI/GUIMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ internal void updateWindowSize()
{
Window = new Rect((Screen.width * .5f - ((Screen.width * Width) / 2)), Screen.height * .5f - ((Screen.height * Height) / 2), Screen.width * Width, Screen.height * Height);
ModListArea = new Rect(6, 43, Window.width * ModlistWidth, Screen.height * Height - 45);
ModInfoArea = new Rect(ModListArea.width + 15, 43, Screen.width * Width - (ModListArea.width + 11), Screen.height * Height - 45);
ModInfoArea = new Rect(ModListArea.width + 15, 43, (Screen.width * Width - (ModListArea.width + 11)) - 10, Screen.height * Height - 45);
ModSettingsArea = new Rect(6, 43, Screen.width * Width - 12, Screen.height * Height - 45);
}

Expand Down
2 changes: 2 additions & 0 deletions PulsarModLoader/Patches/GUIUnlockCursorPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class LockMouselook
{
static bool PatchMethod()
{
if (CustomGUI.GUIMain.Instance == null) return false;

return !PLInput.Instance.GetButton(PLInputBase.EInputActionName.unlock_mouse) && CustomGUI.GUIMain.Instance.ShouldUnlockCursor();
}
static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
Expand Down

0 comments on commit 2b51f07

Please sign in to comment.