装备系统完结,修复并加入很多

This commit is contained in:
2026-04-03 19:15:02 +08:00
parent 538085b64f
commit d9376833b6
378 changed files with 62464 additions and 16756 deletions
@@ -1456,7 +1456,6 @@ public class idolUpgrade : MonoBehaviour
List<string> others = recipientSummaries.GetRange(1, recipientSummaries.Count - 1);
return string.Format("雨露均沾生效:{0};同时为{1}提供经验", primary, string.Join("", others.ToArray()));
}
private static string GetPendingDebtKey(int heroId)
{
return "idol_upgrade_pending_debt_" + heroId;
@@ -51,6 +51,15 @@ public class materialPrefab : MonoBehaviour
}
}
public void BindOwnedRequired(Sprite sprite, string displayName, int ownedAmount, int requiredAmount, bool selected, bool interactable, Action onClick)
{
string ownedText = ownedAmount < requiredAmount
? $"<color=#FF4D4D>{Mathf.Max(0, ownedAmount)}</color>"
: Mathf.Max(0, ownedAmount).ToString();
string amountText = $"{ownedText}/{Mathf.Max(0, requiredAmount)}";
Bind(sprite, displayName, amountText, selected, interactable, onClick);
}
public void SetSelected(bool selected)
{
if (boarder != null)