android support

This commit is contained in:
XtraCube committed 2025-09-30 11:13:23 -04:00
1 parent 8bf101534f
commit f13d46ec18
2 files changed
+16

No files matched your search

+16
View File
@@ -73,6 +73,22 @@ public static class HudManagerPatches
gridArrange.Alignment = GridArrange.StartAlign.Right;
aspectPosition.Alignment = AspectPosition.EdgeAlignments.LeftBottom;
if (Constants.GetPlatformType() is Platforms.Android or Platforms.IPhone)
{
var fakeButton = Object.Instantiate(__instance.AbilityButton, BottomLeft.transform);
foreach (var renderer in fakeButton.GetComponentsInChildren<Renderer>())
{
renderer.enabled = false;
}
fakeButton.buttonLabelText.Destroy();
fakeButton.cooldownTimerText.Destroy();
fakeButton.usesRemainingText.Destroy();
fakeButton.GetComponent<PassiveButton>().Destroy();
fakeButton.ToggleVisible(true);
fakeButton.Destroy();
}
foreach (var button in CustomButtonManager.CustomButtons)
{
var location = button.Location switch
Binary file not shown.