using UnityEngine;
|
|
namespace vnxbqy.UI
|
{
|
public class YunShiXBProbabilityCell : CellView
|
{
|
[SerializeField] TextEx txtName;
|
[SerializeField] TextEx txtRate;
|
|
public void Display(int index, CellView cell)
|
{
|
int itemId = cell.info.Value.infoInt1;
|
int count = cell.info.Value.infoInt2;
|
int rate = cell.info.Value.infoInt3;
|
if (!ItemConfig.Has(itemId))
|
return;
|
ItemConfig itemConfig = ItemConfig.Get(itemId);
|
|
txtName.text = StringUtility.Contact(itemConfig.ItemName, " ", Language.Get("CelestialPalace13", count));
|
double partRate = (double)rate / 100;
|
txtRate.text = StringUtility.Contact(partRate.ToString("F2"), "%");
|
}
|
}
|
}
|