-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e428ee9
commit 3c899c8
Showing
9 changed files
with
79 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using HarmonyLib; | ||
using MegaPixel.ApplicationManagement; | ||
|
||
namespace HotdRemake_ArcadePlugin_202204 | ||
{ | ||
class mMP_CursorSetterModule | ||
{ | ||
[HarmonyPatch(typeof(MP_CursorSetterModule), "changeCursorLockMode")] | ||
class changeCursorLockMode | ||
{ | ||
static bool Prefix(ref UnityEngine.CursorLockMode _cursorLockMode) | ||
{ | ||
//HotdRemake_ArcadePlugin.MyLogger.LogMessage("MP_CursorSetterModule.changeCursorLockMode(" + _cursorLockMode + ")"); | ||
_cursorLockMode = UnityEngine.CursorLockMode.None; | ||
return true; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Force hiding cursor | ||
/// </summary> | ||
[HarmonyPatch(typeof(MP_CursorSetterModule), "changeCursorVisibility")] | ||
class changeCursorVisibility | ||
{ | ||
static bool Prefix(ref bool _shouldBeVisible) | ||
{ | ||
//HotdRemake_ArcadePlugin.MyLogger.LogMessage("MP_CursorSetterModule.changeCursorVisibility(" + _shouldBeVisible + ")"); | ||
if (HotdRemake_ArcadePlugin.Configurator.HideCursor) | ||
_shouldBeVisible = false; | ||
return true; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using HarmonyLib; | ||
using MegaPixel.ApplicationManagement; | ||
|
||
namespace HotdRemake_ArcadePlugin_202207 | ||
{ | ||
class mMP_CursorSetterModule | ||
{ | ||
[HarmonyPatch(typeof(MP_CursorSetterModule), "changeCursorLockMode")] | ||
class changeCursorLockMode | ||
{ | ||
static bool Prefix(ref UnityEngine.CursorLockMode _cursorLockMode) | ||
{ | ||
//HotdRemake_ArcadePlugin.MyLogger.LogMessage("MP_CursorSetterModule.changeCursorLockMode(" + _cursorLockMode + ")"); | ||
_cursorLockMode = UnityEngine.CursorLockMode.None; | ||
return true; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Force hiding cursor | ||
/// </summary> | ||
[HarmonyPatch(typeof(MP_CursorSetterModule), "changeCursorVisibility")] | ||
class changeCursorVisibility | ||
{ | ||
static bool Prefix(ref bool _shouldBeVisible) | ||
{ | ||
//HotdRemake_ArcadePlugin.MyLogger.LogMessage("MP_CursorSetterModule.changeCursorVisibility(" + _shouldBeVisible + ")"); | ||
if (HotdRemake_ArcadePlugin.Configurator.HideCursor) | ||
_shouldBeVisible = false; | ||
return true; | ||
} | ||
} | ||
} | ||
} |