[NAK_CVR_Mods] Unfucked for 2026r182

This commit is contained in:
NotAKid 2026-06-18 22:20:56 -05:00
parent c13dc8375a
commit 281403d68b
209 changed files with 3936 additions and 1122 deletions

View file

@ -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