mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
offset buttons for android
This commit is contained in:
1 parent
2ac6c55cf8
commit
85431d3685
1 file changed
+12
@@ -63,6 +63,18 @@ public static class HudManagerPatches
|
|||||||
gridArrange.Alignment = GridArrange.StartAlign.Right;
|
gridArrange.Alignment = GridArrange.StartAlign.Right;
|
||||||
aspectPosition.Alignment = AspectPosition.EdgeAlignments.LeftBottom;
|
aspectPosition.Alignment = AspectPosition.EdgeAlignments.LeftBottom;
|
||||||
|
|
||||||
|
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)
|
foreach (var button in CustomButtonManager.CustomButtons)
|
||||||
{
|
{
|
||||||
var location = button.Location switch
|
var location = button.Location switch
|
||||||
|
|||||||
Reference in new issue
Block a user