From 8d5bc710e75441ea01c07ae3fd7e015fbe13380a Mon Sep 17 00:00:00 2001 From: Atony <75191600+AtonyGit@users.noreply.github.com> Date: Sun, 30 Nov 2025 15:22:37 -0600 Subject: [PATCH] Move all binds to the top right of buttons --- MiraAPI/Hud/CustomActionButton.cs | 2 +- MiraAPI/Patches/HudManagerPatches.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/MiraAPI/Hud/CustomActionButton.cs b/MiraAPI/Hud/CustomActionButton.cs index 1d256e8..c95b347 100644 --- a/MiraAPI/Hud/CustomActionButton.cs +++ b/MiraAPI/Hud/CustomActionButton.cs @@ -219,7 +219,7 @@ public abstract class CustomActionButton Helpers.CreateKeybindIcon( Button.gameObject, Keybind.CurrentKey, - new Vector3(MaxUses <= 0 ? -0.4f : 0.4f, 0.45f, -9f) + new Vector3(0.4f, 0.45f, -9f) ); KeybindText = KeybindIcon.transform.GetChild(0).GetComponent(); HudManagerPatches.ModdedKeybindIcons.Add(KeybindText); diff --git a/MiraAPI/Patches/HudManagerPatches.cs b/MiraAPI/Patches/HudManagerPatches.cs index 8a40b85..b75d0d0 100644 --- a/MiraAPI/Patches/HudManagerPatches.cs +++ b/MiraAPI/Patches/HudManagerPatches.cs @@ -123,15 +123,17 @@ public static class HudManagerPatches aspectPosition.AdjustPosition(); vanillaKeybindIcons = []; - var keybindIconPos = new Vector3(-0.4f, 0.4f, -9.5f); + var keybindIconPos = new Vector3(0.4f, 0.4f, -9.5f); var vanillaButtons = new Dictionary { { __instance.KillButton.gameObject, 8 }, { __instance.UseButton.gameObject, 6 }, + { __instance.PetButton.gameObject, 6 }, { __instance.ReportButton.gameObject, 7 }, { __instance.ImpostorVentButton.gameObject, 50 }, { __instance.SabotageButton.gameObject, 4 }, { __instance.AbilityButton.gameObject, 49 }, + { __instance.SecondaryAbilityButton.gameObject, 8 }, }; foreach (var kvp in vanillaButtons)