Skip to content

Commit

Permalink
v3.0 update
Browse files Browse the repository at this point in the history
  • Loading branch information
argonlefou committed Feb 2, 2025
1 parent e428ee9 commit 3c899c8
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 29 deletions.
2 changes: 1 addition & 1 deletion HotdRemake_ArcadePlugin_202204/ConfManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class ConfManager

//Gameplay Settings (Works for both players)
private int _HideCrosshairs = 0;
private int _GameDifficulty = 3;
private int _GameDifficulty = 3; //0=Easy, 1=Normal, 2=HArd, 3=VeryHard

//Sound Settings (0-100%)
private int _MasterVolume = 100;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
<Compile Include="ConfManager.cs" />
<Compile Include="Hotdra_MemoryMappedFile_Controller.cs" />
<Compile Include="LanguageStrings.cs" />
<Compile Include="mMP_CursorSetterModule.cs" />
<Compile Include="mHD_AchievementHandler.cs" />
<Compile Include="mHD_AgentNameMenu.cs" />
<Compile Include="mHD_BloodSetup.cs" />
Expand Down
12 changes: 1 addition & 11 deletions HotdRemake_ArcadePlugin_202204/Hotd_ArcadePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class HotdRemake_ArcadePlugin : BaseUnityPlugin
{
public const String pluginGuid = "argonlefou.hotdr.arcade.v2022-04";
public const String pluginName = "House Of The Dead Remake v2022-04 - Arcade Plugin";
public const String pluginVersion = "1.0.0.0";
public const String pluginVersion = "3.0.0.0";

public static HotdRemake_ArcadePlugin Instance = null;
public static ManualLogSource MyLogger;
Expand Down Expand Up @@ -139,16 +139,6 @@ public void Awake()

public void Update()
{
//Unlocking mouse cursor
if (Cursor.lockState != CursorLockMode.None)
Cursor.lockState = CursorLockMode.None;

// Cursor visibility
if (Configurator.HideCursor)
Cursor.visible = false;
else
Cursor.visible = true;

//Changing the In-Game Player Text fieds
if (P1_GUIText != null)
{
Expand Down
6 changes: 3 additions & 3 deletions HotdRemake_ArcadePlugin_202204/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("HotdRemake_ArcadePlugin")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[assembly: AssemblyCopyright("Copyright © Argonlefou 2025")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,5 @@
// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut
// en utilisant '*', comme indiqué ci-dessous :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: AssemblyFileVersion("2.0.0.0")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
34 changes: 34 additions & 0 deletions HotdRemake_ArcadePlugin_202204/mMP_CursorSetterModule.cs
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;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
<Compile Include="mMP_ApplicationManager.cs" />
<Compile Include="mMP_Button.cs" />
<Compile Include="mMP_ControllerdisconnectedPopup.cs" />
<Compile Include="mMP_CursorSetterModule.cs" />
<Compile Include="mMP_GameplayTipsManager.cs" />
<Compile Include="mMP_Menu.cs" />
<Compile Include="mMP_MusicManager.cs" />
Expand Down
12 changes: 1 addition & 11 deletions HotdRemake_ArcadePlugin_202207/Hotd_ArcadePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class HotdRemake_ArcadePlugin : BaseUnityPlugin
{
public const String pluginGuid = "argonlefou.hotdr.arcade.v2022-07";
public const String pluginName = "House Of The Dead Remake v2022-07 - Arcade Plugin";
public const String pluginVersion = "1.0.0.0";
public const String pluginVersion = "3.0.0.0";

public static HotdRemake_ArcadePlugin Instance = null;
public static ManualLogSource MyLogger;
Expand Down Expand Up @@ -139,16 +139,6 @@ public void Awake()

public void Update()
{
//Unlocking mouse cursor
if (Cursor.lockState != CursorLockMode.None)
Cursor.lockState = CursorLockMode.None;

// Cursor visibility
if (Configurator.HideCursor)
Cursor.visible = false;
else
Cursor.visible = true;

//Changing the In-Game Player Text fieds
if (P1_GUIText != null)
{
Expand Down
6 changes: 3 additions & 3 deletions HotdRemake_ArcadePlugin_202207/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("HotdRemake_ArcadePlugin")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[assembly: AssemblyCopyright("Copyright © Argonlefou 2025")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,5 @@
// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut
// en utilisant '*', comme indiqué ci-dessous :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: AssemblyFileVersion("2.0.0.0")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
34 changes: 34 additions & 0 deletions HotdRemake_ArcadePlugin_202207/mMP_CursorSetterModule.cs
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;
}
}
}
}

0 comments on commit 3c899c8

Please sign in to comment.