From e2d4f9314a5097f961250b5e06b66660dc247312 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 11 十一月 2025 17:05:03 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts
---
Main/System/ItemTip/OwnMoneyCell.cs | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/Main/System/ItemTip/OwnMoneyCell.cs b/Main/System/ItemTip/OwnMoneyCell.cs
index afd95cc..0369a9b 100644
--- a/Main/System/ItemTip/OwnMoneyCell.cs
+++ b/Main/System/ItemTip/OwnMoneyCell.cs
@@ -64,7 +64,14 @@
// Debug.LogError("moneyType == 0");
return;
}
- numText.text = UIHelper.ReplaceLargeNum(UIHelper.GetMoneyCnt(moneyType));
+ double count = UIHelper.GetMoneyCnt(moneyType);
+ int decimalPlaces = 1;
+ if (moneyType == 99)
+ {
+ count = count / 100.0;
+ decimalPlaces = 2;
+ }
+ numText.text = UIHelper.ReplaceLargeNum(count, decimalPlaces);
if (resetIcon)
{
moneyIcon.SetIconWithMoneyType(moneyType);
--
Gitblit v1.8.0