diff --git a/Fika.Core/UI/Patches/MenuTaskBar_Patch.cs b/Fika.Core/UI/Patches/MenuTaskBar_Patch.cs index f172040f..0405c5a4 100644 --- a/Fika.Core/UI/Patches/MenuTaskBar_Patch.cs +++ b/Fika.Core/UI/Patches/MenuTaskBar_Patch.cs @@ -8,6 +8,7 @@ using System.IO; using System.Reflection; using UnityEngine; +using UnityEngine.UI; namespace Fika.Core.UI.Patches { @@ -33,6 +34,9 @@ public static void Postfix(MenuTaskBar __instance) downloadProfileGameObject.transform.SetParent(fleaMarketGameObject.transform.parent, false); downloadProfileGameObject.transform.SetSiblingIndex(10); + GameObject downloadProfileButton = downloadProfileGameObject.transform.GetChild(0).gameObject; + downloadProfileButton.name = "DownloadProfileButton"; + LocalizedText text = downloadProfileGameObject.GetComponentInChildren(); if (text != null) { @@ -40,6 +44,17 @@ public static void Postfix(MenuTaskBar __instance) text.LocalizationKey = ""; } + GameObject buildListObject = GameObject.Find("/Menu UI/UI/EquipmentBuildsScreen/Panels/BuildsListPanel/Header/SizeSample/Selected/Icon"); + if (buildListObject != null) + { + Image downloadImage = buildListObject.GetComponent(); + Image downloadProfileImage = downloadProfileButton.transform.GetChild(0).gameObject.GetComponent(); + if (downloadProfileImage != null && downloadImage != null) + { + downloadProfileImage.sprite = downloadImage.sprite; + } + } + AnimatedToggle animatedToggle = downloadProfileGameObject.GetComponentInChildren(); if (animatedToggle != null) {