mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-24 16:46:45 +00:00
Move all binds to the top right of buttons
This commit is contained in:
1 parent
798ce451d5
commit
8d5bc710e7
2 files changed
+4
-2
No files matched your search
@@ -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<TextMeshPro>();
|
||||
HudManagerPatches.ModdedKeybindIcons.Add(KeybindText);
|
||||
|
||||
@@ -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<GameObject, int>
|
||||
{
|
||||
{ __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)
|
||||
|
||||
Reference in new issue
Block a user