|
@@ -40,15 +40,15 @@ namespace FL.FGUI
|
|
|
{
|
|
|
var itemInfo = ItemTableRepo.Get(itemId);
|
|
|
if (itemInfo != null) VM.CostIcon.icon = itemInfo?.Icon;
|
|
|
- VM.CostLabel.text = count.ToString();
|
|
|
+ VM.CostLabel.text = count.FormatNumber();
|
|
|
}
|
|
|
public void ShowCostUI(int costId, long costVal, long count = 0)
|
|
|
{
|
|
|
var costItemInfo = ItemTableRepo.Get(costId);
|
|
|
if (costItemInfo != null) VM.CostIcon.icon = costItemInfo?.Icon;
|
|
|
if (count == 0) count = ItemData.Instance.GetItemNum(costId);
|
|
|
- var countStr = count < costVal ? $"[color=#f74b4b]{count}[/color]" : $"[color=#1ef369]{count}[/color]";
|
|
|
- VM.CostLabel.text = $"{countStr}/{costVal}";
|
|
|
+ var countStr = count < costVal ? $"[color=#f74b4b]{count.FormatNumber()}[/color]" : $"[color=#1ef369]{count.FormatNumber()}[/color]";
|
|
|
+ VM.CostLabel.text = $"{countStr}/{costVal.FormatNumber()}";
|
|
|
}
|
|
|
}
|
|
|
}
|