diff --git a/MiraAPI/Patches/HudManagerPatches.cs b/MiraAPI/Patches/HudManagerPatches.cs index 27a8026..9795c1b 100644 --- a/MiraAPI/Patches/HudManagerPatches.cs +++ b/MiraAPI/Patches/HudManagerPatches.cs @@ -63,6 +63,18 @@ public static class HudManagerPatches gridArrange.Alignment = GridArrange.StartAlign.Right; aspectPosition.Alignment = AspectPosition.EdgeAlignments.LeftBottom; + var fakeButton = Object.Instantiate(__instance.AbilityButton, BottomLeft.transform); + foreach (var renderer in fakeButton.GetComponentsInChildren()) + { + renderer.enabled = false; + } + fakeButton.buttonLabelText.Destroy(); + fakeButton.cooldownTimerText.Destroy(); + fakeButton.usesRemainingText.Destroy(); + fakeButton.GetComponent().Destroy(); + fakeButton.ToggleVisible(true); + fakeButton.Destroy(); + foreach (var button in CustomButtonManager.CustomButtons) { var location = button.Location switch