From 85431d368527c96e8daef5d01ca675a8e1c5e504 Mon Sep 17 00:00:00 2001 From: XtraCube <72575280+XtraCube@users.noreply.github.com> Date: Thu, 22 May 2025 22:38:51 -0400 Subject: [PATCH] offset buttons for android --- MiraAPI/Patches/HudManagerPatches.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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