mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
[PortableCameraAdditions] Remove F11 fullscreen bind.
This commit is contained in:
parent
1631effeff
commit
25ccf7c61c
6 changed files with 420 additions and 28 deletions
|
@ -28,26 +28,4 @@ internal class PortableCameraPatches
|
|||
{
|
||||
VisualMods.CameraAdditions.Instance?.OnUpdateOptionsDisplay(____showExpertSettings);
|
||||
}
|
||||
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(PortableCamera), nameof(PortableCamera.Update))]
|
||||
private static void Postfix_PortableCamera_Update(ref PortableCamera __instance)
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.F11))
|
||||
{
|
||||
bool flag = __instance.mode == MirroringMode.NoMirror;
|
||||
__instance.mode = (flag) ? MirroringMode.Mirror : MirroringMode.NoMirror;
|
||||
__instance.mirroringActive.SetActive(flag);
|
||||
__instance.mirroringCanvas.gameObject.SetActive(flag);
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(PortableCamera), nameof(PortableCamera.OnDisable))]
|
||||
private static void Postfix_PortableCamera_OnDisable(ref PortableCamera __instance)
|
||||
{
|
||||
__instance.mode = MirroringMode.NoMirror;
|
||||
__instance.mirroringActive.SetActive(false);
|
||||
__instance.mirroringCanvas.gameObject.SetActive(false);
|
||||
}
|
||||
}
|
|
@ -27,6 +27,6 @@ using System.Reflection;
|
|||
namespace NAK.PortableCameraAdditions.Properties;
|
||||
internal static class AssemblyInfoParams
|
||||
{
|
||||
public const string Version = "1.0.3";
|
||||
public const string Version = "1.0.4";
|
||||
public const string Author = "NotAKidoS";
|
||||
}
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"_id": 123,
|
||||
"name": "PortableCameraAdditions",
|
||||
"modversion": "1.0.3",
|
||||
"gameversion": "2023r171",
|
||||
"modversion": "1.0.4",
|
||||
"gameversion": "2023r172",
|
||||
"loaderversion": "0.6.1",
|
||||
"modtype": "Mod",
|
||||
"author": "NotAKidoS",
|
||||
"description": "Adds a few basic settings to the Portable Camera.\n\nExpert settings for Near Clip & Far Clip.\nExpert settings for Orthographic & Orthographic Size.\nBy default, Near Clip & Far Clip are copied on world load.\nF11 to fullscreen on Desktop.",
|
||||
"description": "Adds a few basic settings to the Portable Camera.\n\nExpert settings for Near Clip & Far Clip.\nExpert settings for Orthographic & Orthographic Size.\nBy default, Near Clip & Far Clip are copied on world load.",
|
||||
"searchtags": [
|
||||
"camera",
|
||||
"settings",
|
||||
|
@ -18,8 +18,8 @@
|
|||
"requirements": [
|
||||
"None"
|
||||
],
|
||||
"downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r16/PortableCameraAdditions.dll",
|
||||
"downloadlink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/releases/download/r21/PortableCameraAdditions.dll",
|
||||
"sourcelink": "https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/PortableCameraAdditions/",
|
||||
"changelog": "Fixes for 2023r171.",
|
||||
"changelog": "- Removed F11 bind to fullscreen Portable Camera.\nIt is now a native bind with 2023r172.",
|
||||
"embedcolor": "#ffd96a"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue