[HeadBobbingFix] Rename from DesktopCameraFix

confusing name for some
This commit is contained in:
NotAKidoS 2023-06-14 12:51:02 -05:00
parent 164de9ea68
commit 13927f1d67
8 changed files with 46 additions and 46 deletions

View file

@ -1,23 +0,0 @@
{
"_id": -1,
"name": "DesktopCameraFix",
"modversion": "1.0.0",
"gameversion": "2022r170",
"loaderversion": "0.5.7",
"modtype": "Mod",
"author": "NotAKidoS",
"description": "Fixes Desktop camera pivoting in place. Please view the README for more info: [README](https://github.com/NotAKidOnSteam/NAK_CVR_Mods/blob/main/DesktopCameraFix/README.md)",
"searchtags": [
"desktop",
"camera",
"pivot",
"fix"
],
"requirements": [
"None"
],
"downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r10/DesktopCameraFix.dll",
"sourcelink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/DesktopCameraFix/",
"changelog": "- Initial Release",
"embedcolor": "#9b59b6"
}

View file

@ -3,7 +3,7 @@ using ABI_RC.Systems.MovementSystem;
using HarmonyLib;
using UnityEngine;
namespace NAK.DesktopCameraFix.HarmonyPatches;
namespace NAK.HeadBobbingFix.HarmonyPatches;
class PlayerSetupPatches
{
@ -11,7 +11,7 @@ class PlayerSetupPatches
[HarmonyPatch(typeof(PlayerSetup), nameof(PlayerSetup.HandleDesktopCameraPosition))]
public static void Postfix_PlayerSetup_HandleDesktopCameraPosition(bool ignore, ref PlayerSetup __instance, ref MovementSystem ____movementSystem, ref int ___headBobbingLevel)
{
if (!DesktopCameraFix.EntryEnabled.Value)
if (!HeadBobbingFix.EntryEnabled.Value)
return;
// this would be much simplier if I bothered with transpilers

View file

@ -1,15 +1,15 @@
using ABI_RC.Core.Player;
using MelonLoader;
namespace NAK.DesktopCameraFix;
namespace NAK.HeadBobbingFix;
public class DesktopCameraFix : MelonMod
public class HeadBobbingFix : MelonMod
{
public static readonly MelonPreferences_Category Category =
MelonPreferences.CreateCategory(nameof(DesktopCameraFix));
MelonPreferences.CreateCategory(nameof(HeadBobbingFix));
public static readonly MelonPreferences_Entry<bool> EntryEnabled =
Category.CreateEntry("Enabled", true, description: "Toggle DesktopCameraFix entirely.");
Category.CreateEntry("Enabled", true, description: "Toggle HeadBobbingFix entirely. You need full headbobbing enabled for the mod to take effect.");
public override void OnInitializeMelon()
{
@ -19,7 +19,7 @@ public class DesktopCameraFix : MelonMod
void OnEntryEnabledChanged(bool newValue, bool oldValue)
{
if (newValue) PlayerSetup.Instance.SetViewPointOffset();
if (newValue) PlayerSetup.Instance?.SetViewPointOffset();
}
void ApplyPatches(Type type)

View file

@ -1,20 +1,20 @@
using DesktopCameraFix.Properties;
using MelonLoader;
using MelonLoader;
using NAK.HeadBobbingFix.Properties;
using System.Reflection;
[assembly: AssemblyVersion(AssemblyInfoParams.Version)]
[assembly: AssemblyFileVersion(AssemblyInfoParams.Version)]
[assembly: AssemblyInformationalVersion(AssemblyInfoParams.Version)]
[assembly: AssemblyTitle(nameof(NAK.DesktopCameraFix))]
[assembly: AssemblyTitle(nameof(NAK.HeadBobbingFix))]
[assembly: AssemblyCompany(AssemblyInfoParams.Author)]
[assembly: AssemblyProduct(nameof(NAK.DesktopCameraFix))]
[assembly: AssemblyProduct(nameof(NAK.HeadBobbingFix))]
[assembly: MelonInfo(
typeof(NAK.DesktopCameraFix.DesktopCameraFix),
nameof(NAK.DesktopCameraFix),
typeof(NAK.HeadBobbingFix.HeadBobbingFix),
nameof(NAK.HeadBobbingFix),
AssemblyInfoParams.Version,
AssemblyInfoParams.Author,
downloadLink: "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/DesktopCameraFix"
downloadLink: "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/HeadBobbingFix"
)]
[assembly: MelonGame("Alpha Blend Interactive", "ChilloutVR")]
@ -22,9 +22,9 @@ using System.Reflection;
[assembly: MelonPlatformDomain(MelonPlatformDomainAttribute.CompatibleDomains.MONO)]
[assembly: HarmonyDontPatchAll]
namespace DesktopCameraFix.Properties;
namespace NAK.HeadBobbingFix.Properties;
internal static class AssemblyInfoParams
{
public const string Version = "1.0.0";
public const string Version = "1.0.1";
public const string Author = "NotAKidoS";
}

View file

@ -1,5 +1,5 @@
## DesktopCameraFix
Makes the Desktop camera pivot correctly with the viewpoint.
## HeadBobbingFix
Makes the Desktop camera pivot correctly with the viewpoint when full head bobbing is enabled.
https://github.com/NotAKidOnSteam/NAK_CVR_Mods/assets/37721153/d2b0f918-b4a9-408a-b25f-4c68761ad1c7

View file

@ -0,0 +1,23 @@
{
"_id": 165,
"name": "HeadBobbingFix",
"modversion": "1.0.1",
"gameversion": "2022r170",
"loaderversion": "0.5.7",
"modtype": "Mod",
"author": "NotAKidoS",
"description": "Fixes Desktop camera pivoting in place when full head bobbing is enabled. Please view the README for more info: [README](https://github.com/NotAKidOnSteam/NAK_CVR_Mods/blob/main/HeadBobbingFix/README.md)",
"searchtags": [
"desktop",
"camera",
"pivot",
"fix"
],
"requirements": [
"None"
],
"downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r11/HeadBobbingFix.dll",
"sourcelink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/HeadBobbingFix/",
"changelog": "- Initial Release\n- Rename to HeadBobbingFix to prevent confusion",
"embedcolor": "#e33b24"
}

View file

@ -59,7 +59,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SmoothRay", "SmoothRay\Smoo
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TrackedPointFix", "TrackedPointFix\TrackedPointFix.csproj", "{0A6788A8-89E9-4FC4-B4FE-27FE8B39926C}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DesktopCameraFix", "DesktopCameraFix\DesktopCameraFix.csproj", "{E17F78BF-90FB-44F7-A919-EDDF0BC1AF01}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HeadBobbingFix", "HeadBobbingFix\HeadBobbingFix.csproj", "{EFE40A43-3FA4-4B61-8A7E-78789792F127}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -179,10 +179,10 @@ Global
{0A6788A8-89E9-4FC4-B4FE-27FE8B39926C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0A6788A8-89E9-4FC4-B4FE-27FE8B39926C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0A6788A8-89E9-4FC4-B4FE-27FE8B39926C}.Release|Any CPU.Build.0 = Release|Any CPU
{E17F78BF-90FB-44F7-A919-EDDF0BC1AF01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E17F78BF-90FB-44F7-A919-EDDF0BC1AF01}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E17F78BF-90FB-44F7-A919-EDDF0BC1AF01}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E17F78BF-90FB-44F7-A919-EDDF0BC1AF01}.Release|Any CPU.Build.0 = Release|Any CPU
{EFE40A43-3FA4-4B61-8A7E-78789792F127}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EFE40A43-3FA4-4B61-8A7E-78789792F127}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EFE40A43-3FA4-4B61-8A7E-78789792F127}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EFE40A43-3FA4-4B61-8A7E-78789792F127}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE