Work on improving the main menu

This commit is contained in:
Lncvrt committed 2026-03-07 19:29:21 -07:00
1 parent 78f3a8c04c
commit c4dd775e99
6 files changed
+2183 -1405

No files matched your search

+9
View File
@@ -49,6 +49,15 @@ public class MainMenu : MonoBehaviour {
clone.SetActive(true);
await clone.GetComponent<ProfileMenu>().Init();
});
try {
Tools.LoadIcon(
profileButton.transform.GetChild(1).GetComponent<Image>(),
profileButton.transform.GetChild(1).GetChild(0).GetComponent<Image>()
);
}
catch (Exception e) {
Debug.LogError(e);
}
profileButton.gameObject.SetActive(true);
}
+13
View File
@@ -154,6 +154,19 @@ public static class Tools {
}
}
public static void LoadIcon(Image icon, Image overlay) {
LoadIcon(
icon,
overlay,
BazookaManager.Instance.GetBirdIcon(),
BazookaManager.Instance.GetBirdOverlay(),
BazookaManager.Instance.GetColorSettingIcon(),
BazookaManager.Instance.GetColorSettingOverlay(),
BazookaManager.Instance.GetCustomBirdIconData().Selected,
BazookaManager.Instance.GetAccountID() ?? 0
);
}
public static GameObject[] GetAllBerries(Transform berryParent) {
GameObject[] children = new GameObject[berryParent.childCount];
for (int i = 0; i < berryParent.childCount; i++) {