From cb21892f091f2d0a749495e4e87ddb3ed7947ca3 Mon Sep 17 00:00:00 2001
From: Client_PangDeRong <593317293@qq.com>
Date: 星期一, 27 八月 2018 17:59:36 +0800
Subject: [PATCH] 【2954】增加丹方进度百分比
---
System/BlastFurnace/DandrugCell.cs | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/System/BlastFurnace/DandrugCell.cs b/System/BlastFurnace/DandrugCell.cs
index ea0848f..fdfbe12 100644
--- a/System/BlastFurnace/DandrugCell.cs
+++ b/System/BlastFurnace/DandrugCell.cs
@@ -51,9 +51,16 @@
else
{
progressObj.SetActive(true);
- lockText.gameObject.SetActive(false);
- progressValue.text = StringUtility.Contact((float)Math.Round(playerPack.GetAlchemyProgress(alchemyModel),2),"%");
-
+ lockText.gameObject.SetActive(false);
+ float progress = (float)Math.Round(playerPack.GetAlchemyProgress(alchemyModel), 2);
+ if(progress > 0)
+ {
+ progressValue.text = UIHelper.GetTextColorByItemColor(TextColType.Green, StringUtility.Contact(progress, "%"));
+ }
+ else
+ {
+ progressValue.text = UIHelper.GetTextColorByItemColor(TextColType.White, StringUtility.Contact(progress, "%"));
+ }
}
if (index == selectIndex)
--
Gitblit v1.8.0