mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2026-06-20 21:48:02 +00:00
[NAK_CVR_Mods] Unfucked for 2026r182
This commit is contained in:
parent
c13dc8375a
commit
281403d68b
209 changed files with 3936 additions and 1122 deletions
|
|
@ -1,15 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<RootNamespace>ASTExtension</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="BTKUILib">
|
||||
<HintPath>..\.ManagedLibs\BTKUILib.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Remove="Resources\ASM_Icon_AvatarHeightCopy.png" />
|
||||
<EmbeddedResource Include="Resources\ASM_Icon_AvatarHeightCopy.png" />
|
||||
<None Remove="Resources\CopyAvatarAASAlt.png" />
|
||||
<EmbeddedResource Include="Resources\CopyAvatarAASAlt.png" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
using ABI_RC.Core.Player;
|
||||
using ABI_RC.Core.Util.AnimatorManager;
|
||||
using BTKUILib;
|
||||
using BTKUILib.UIObjects;
|
||||
using BTKUILib.UIObjects.Components;
|
||||
using ABI_RC.Systems.UI.UILib;
|
||||
using ABI_RC.Systems.UI.UILib.UIObjects;
|
||||
using ABI_RC.Systems.UI.UILib.UIObjects.Components;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NAK.ASTExtension.Integrations;
|
||||
|
|
@ -11,15 +11,15 @@ public static partial class BtkUiAddon
|
|||
{
|
||||
public static void Initialize()
|
||||
{
|
||||
Prepare_Icons();
|
||||
Setup_PlayerSelectPage();
|
||||
}
|
||||
Prepare_Icons();
|
||||
Setup_PlayerSelectPage();
|
||||
}
|
||||
|
||||
private static void Prepare_Icons()
|
||||
{
|
||||
QuickMenuAPI.PrepareIcon(ASTExtensionMod.ModName, "ASM_Icon_AvatarHeightCopy",
|
||||
GetIconStream("ASM_Icon_AvatarHeightCopy.png"));
|
||||
}
|
||||
QuickMenuAPI.PrepareIcon(ASTExtensionMod.ModName, "ASM_Icon_AvatarHeightCopy", GetIconStream("ASM_Icon_AvatarHeightCopy.png"));
|
||||
QuickMenuAPI.PrepareIcon(ASTExtensionMod.ModName, "CopyAvatarAASAlt", GetIconStream("CopyAvatarAASAlt.png"));
|
||||
}
|
||||
|
||||
#region Player Select Page
|
||||
|
||||
|
|
@ -27,20 +27,20 @@ public static partial class BtkUiAddon
|
|||
|
||||
private static void Setup_PlayerSelectPage()
|
||||
{
|
||||
QuickMenuAPI.OnPlayerSelected += OnPlayerSelected;
|
||||
Category category = QuickMenuAPI.PlayerSelectPage.AddCategory(ASTExtensionMod.ModName, ASTExtensionMod.ModName);
|
||||
Button button = category.AddButton("Copy Height", "ASM_Icon_AvatarHeightCopy", "Copy selected players Eye Height.");
|
||||
button.OnPress += OnCopyPlayerHeight;
|
||||
|
||||
Button button2 = category.AddButton("Copy AAS", string.Empty, "Copy selected players AAS.");
|
||||
button2.OnPress += OnCopyPlayerAAS;
|
||||
}
|
||||
QuickMenuAPI.OnPlayerSelected += OnPlayerSelected;
|
||||
Category category = QuickMenuAPI.PlayerSelectPage.AddCategory(ASTExtensionMod.ModName, ASTExtensionMod.ModName);
|
||||
Button button = category.AddButton("Copy Height", "ASM_Icon_AvatarHeightCopy", "Copy selected players Eye Height.");
|
||||
button.OnPress += OnCopyPlayerHeight;
|
||||
|
||||
Button button2 = category.AddButton("Copy AAS", "CopyAvatarAASAlt", "Copy selected players AAS.");
|
||||
button2.OnPress += OnCopyPlayerAAS;
|
||||
}
|
||||
|
||||
private static void OnPlayerSelected(string _, string id)
|
||||
{
|
||||
_selectedPlayer = id;
|
||||
}
|
||||
|
||||
_selectedPlayer = id;
|
||||
}
|
||||
|
||||
private static void OnCopyPlayerHeight()
|
||||
{
|
||||
if (string.IsNullOrEmpty(_selectedPlayer))
|
||||
|
|
@ -90,8 +90,6 @@ public static partial class BtkUiAddon
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endregion Player Select Page
|
||||
|
|
|
|||
|
|
@ -1,14 +1,17 @@
|
|||
using System.Reflection;
|
||||
using ABI_RC.Core;
|
||||
using ABI_RC.Core.InteractionSystem;
|
||||
using ABI_RC.Core.Player;
|
||||
using ABI_RC.Core.Savior;
|
||||
using ABI_RC.Core.Util;
|
||||
using ABI_RC.Core.Util.AnimatorManager;
|
||||
using ABI_RC.Systems.IK;
|
||||
using ABI_RC.Systems.InputManagement;
|
||||
using ABI.CCK.Components;
|
||||
using HarmonyLib;
|
||||
using MelonLoader;
|
||||
using NAK.ASTExtension.Extensions;
|
||||
using NAK.Contacts;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NAK.ASTExtension;
|
||||
|
|
@ -74,8 +77,8 @@ public class ASTExtensionMod : MelonMod
|
|||
);
|
||||
|
||||
HarmonyInstance.Patch(
|
||||
typeof(ColliderTools).GetMethod(nameof(ColliderTools.PlaceDefaultPointers),
|
||||
BindingFlags.Public | BindingFlags.Static),
|
||||
typeof(IKSystem).GetMethod(nameof(IKSystem.OnAvatarInitialized),
|
||||
BindingFlags.Public | BindingFlags.Instance),
|
||||
postfix: new HarmonyMethod(typeof(ASTExtensionMod).GetMethod(nameof(OnSetupAvatar),
|
||||
BindingFlags.NonPublic | BindingFlags.Static))
|
||||
);
|
||||
|
|
@ -86,17 +89,8 @@ public class ASTExtensionMod : MelonMod
|
|||
prefix: new HarmonyMethod(typeof(ASTExtensionMod).GetMethod(nameof(OnClearAvatar),
|
||||
BindingFlags.NonPublic | BindingFlags.Static))
|
||||
);
|
||||
|
||||
InitializeIntegration("BTKUILib", Integrations.BtkUiAddon.Initialize);
|
||||
}
|
||||
|
||||
private static void InitializeIntegration(string modName, Action integrationAction)
|
||||
{
|
||||
if (RegisteredMelons.All(it => it.Info.Name != modName))
|
||||
return;
|
||||
|
||||
Logger.Msg($"Initializing {modName} integration.");
|
||||
integrationAction.Invoke();
|
||||
Integrations.BtkUiAddon.Initialize();
|
||||
}
|
||||
|
||||
#endregion Melon Events
|
||||
|
|
@ -106,9 +100,8 @@ public class ASTExtensionMod : MelonMod
|
|||
private static void OnGestureRecogniserInitialized()
|
||||
=> Instance.InitializeScaleGesture();
|
||||
|
||||
private static void OnSetupAvatar(bool isLocalPlayer)
|
||||
private static void OnSetupAvatar()
|
||||
{
|
||||
if (!isLocalPlayer) return;
|
||||
Instance.OnLocalAvatarLoad();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,6 @@ using System.Reflection;
|
|||
namespace NAK.ASTExtension.Properties;
|
||||
internal static class AssemblyInfoParams
|
||||
{
|
||||
public const string Version = "1.0.5";
|
||||
public const string Version = "1.0.6";
|
||||
public const string Author = "NotAKidoS";
|
||||
}
|
||||
|
|
@ -44,11 +44,11 @@ If your setup is theoretically supported but not working, it is likely the scali
|
|||
|
||||
---
|
||||
|
||||
Here is the block of text where I tell you this mod is not affiliated with or endorsed by ABI.
|
||||
https://documentation.abinteractive.net/official/legal/tos/#7-modding-our-games
|
||||
Here is the block of text where I tell you this mod is not affiliated with or endorsed by ChilloutVR.
|
||||
https://docs.chilloutvr.net/official/legal/tos/#6-modding-our-game
|
||||
|
||||
> This mod is an independent creation not affiliated with, supported by, or approved by Alpha Blend Interactive.
|
||||
> This mod is an independent creation not affiliated with, supported by, or approved by ChilloutVR.
|
||||
|
||||
> Use of this mod is done so at the user's own risk and the creator cannot be held responsible for any issues arising from its use.
|
||||
|
||||
> To the best of my knowledge, I have adhered to the Modding Guidelines established by Alpha Blend Interactive.
|
||||
> To the best of my knowledge, I have adhered to the Modding Guidelines established by ChilloutVR.
|
||||
|
|
|
|||
BIN
ASTExtension/Resources/CopyAvatarAASAlt.png
Normal file
BIN
ASTExtension/Resources/CopyAvatarAASAlt.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"_id": 223,
|
||||
"name": "ASTExtension",
|
||||
"modversion": "1.0.5",
|
||||
"gameversion": "2025r181",
|
||||
"modversion": "1.0.6",
|
||||
"gameversion": "2026r181",
|
||||
"loaderversion": "0.7.2",
|
||||
"modtype": "Mod",
|
||||
"author": "NotAKidoS",
|
||||
|
|
@ -17,8 +17,8 @@
|
|||
"requirements": [
|
||||
"BTKUILib"
|
||||
],
|
||||
"downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r48/ASTExtension.dll",
|
||||
"downloadlink": "https://github.com/NotAKidoS/NAK_CVR_Mods/releases/download/r49/ASTExtension.dll",
|
||||
"sourcelink": "https://github.com/NotAKidoS/NAK_CVR_Mods/tree/main/ASTExtension/",
|
||||
"changelog": "- Rebuilt for CVR 2025r181",
|
||||
"changelog": "- Rebuilt for CVR 2026r181",
|
||||
"embedcolor": "#f61963"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue