优化道具稀有度的 UI 表现

This commit is contained in:
2026-10-04 15:45:54 +08:00
parent c76a421f4a
commit 75ec52f3d4
24 changed files with 1690 additions and 818 deletions
@@ -0,0 +1,20 @@
using SepCore.Definition;
using UnityEngine;
using UnityEngine.UI;
namespace SepCore.UI
{
public class RarityPanel : MonoBehaviour
{
[SerializeField] private RarityPalette _palette = null;
[SerializeField] private Image _background = null;
[SerializeField] private Image _border = null;
public void SetRarity(Rarity rarity)
{
RarityPalette.Colors colors = _palette.Get(rarity);
_background.color = colors.CardBackground;
_border.color = colors.Border;
}
}
}