UI HUGE UPDATE

This commit is contained in:
FloatGaming
2026-06-25 11:48:56 +08:00
parent bd2a06f4c7
commit b2a1e307a4
1806 changed files with 359863 additions and 20822 deletions
+3 -2
View File
@@ -15,7 +15,7 @@ public class uBagItemPrefab : MonoBehaviour, IPointerEnterHandler, IPointerExitH
private Coroutine hoverRoutine;
private float hoverDelaySeconds = 0.5f;
public void Bind(uBag bagOwner, Sprite icon, string countText, Color backgroundColor, float hoverDelay)
public void Bind(uBag bagOwner, Sprite icon, string countText, Color backgroundColor, Sprite backgroundSprite, float hoverDelay)
{
owner = bagOwner;
hoverDelaySeconds = hoverDelay > 0f ? hoverDelay : 0.5f;
@@ -34,7 +34,8 @@ public class uBagItemPrefab : MonoBehaviour, IPointerEnterHandler, IPointerExitH
if (itemBtmImg != null)
{
itemBtmImg.color = backgroundColor;
itemBtmImg.sprite = backgroundSprite;
itemBtmImg.color = backgroundSprite != null ? Color.white : backgroundColor;
}
}