优化道具稀有度的 UI 表现
This commit is contained in:
@@ -17,6 +17,8 @@ namespace SepCore.UI
|
||||
|
||||
[SerializeField] private TMP_Text _descriptionText;
|
||||
|
||||
[SerializeField] private RarityPanel _rarityPanel = null;
|
||||
|
||||
private LevelUpRewardItemContext _context;
|
||||
|
||||
|
||||
@@ -30,6 +32,8 @@ namespace SepCore.UI
|
||||
|
||||
_context = context;
|
||||
|
||||
_rarityPanel.SetRarity(context.Rarity);
|
||||
|
||||
_titleText.text = context.Title;
|
||||
_descriptionText.text = context.Description;
|
||||
_iconArea.OnInit(context.Icon, context.Rarity);
|
||||
@@ -45,4 +49,4 @@ namespace SepCore.UI
|
||||
_iconArea.SetIcon(sprite);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user