From 1a063f09d5d387db100e0c705355fc9096c6eb1d Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期一, 27 十月 2025 11:50:42 +0800
Subject: [PATCH] 136 战锤秘境-客户端 增加需要货币数量显示,绿色改亮绿

---
 Main/System/BoneField/BoneFieldWin.cs |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/Main/System/BoneField/BoneFieldWin.cs b/Main/System/BoneField/BoneFieldWin.cs
index 2b81791..9be1550 100644
--- a/Main/System/BoneField/BoneFieldWin.cs
+++ b/Main/System/BoneField/BoneFieldWin.cs
@@ -4,6 +4,8 @@
 {
     [SerializeField] TextEx txtDifficulty;
     [SerializeField] TextEx txtBossName;
+    [SerializeField] ImageEx imgMoneyCount;
+    [SerializeField] TextEx txtNeedMoneyCount;
     [SerializeField] TextEx txtTodaySweepCount;
     [SerializeField] TextEx txtTodayAdsCount;
     [SerializeField] TextEx txtFirstFree;
@@ -203,7 +205,19 @@
         imgSweepRed.SetActive(isSweepCountOk && myFightPower < dungeonConfig.FightPower);
         txtFirstFree.SetActive(showSweepMaxCount == showrealRemainSweepCount);
         txtTodaySweepCount.SetActive(showSweepMaxCount > showrealRemainSweepCount);
-        txtTodaySweepCount.text = UIHelper.AppendColor(isSweepCountOk ? TextColType.Green : TextColType.Red, Language.Get("BoneField08", showrealRemainSweepCount, showSweepMaxCount));
+        txtTodaySweepCount.text = UIHelper.AppendColor(isSweepCountOk ? TextColType.LightGreen : TextColType.Red, Language.Get("BoneField08", showrealRemainSweepCount, showSweepMaxCount));
+        imgMoneyCount.SetActive(showSweepMaxCount != showrealRemainSweepCount && isSweepCountOk);
+        txtNeedMoneyCount.SetActive(showSweepMaxCount != showrealRemainSweepCount && isSweepCountOk);
+        if (showSweepMaxCount != showrealRemainSweepCount && isSweepCountOk)
+        {
+            int dataMapID = BoneFieldManager.Instance.DataMapID;
+            DungeonOpenTimeConfig config = DungeonOpenTimeConfig.Get(dataMapID);
+            int index = Mathf.Min(Mathf.Max(0, showSweepMaxCount - showrealRemainSweepCount - 1), config.PayMoneyValues.Length - 1);
+            int payMoneyValue = config.PayMoneyValues[index];
+            int payMoneyType = config.PayMoneyType;
+            imgMoneyCount.SetIconWithMoneyType(payMoneyType);
+            txtNeedMoneyCount.text = payMoneyValue.ToString();
+        }
     }
 
     public void DisplayAdsButton(ADAwardConfig aDAwardConfig)
@@ -212,7 +226,7 @@
         bool isShowAds = adsCnt < aDAwardConfig.ADCntMax;
         int remainAdsCount = aDAwardConfig.ADCntMax - adsCnt;
         btnAds.SetActive(isShowAds);
-        txtTodayAdsCount.text = UIHelper.AppendColor(isShowAds ? TextColType.Green : TextColType.Red, Language.Get("BoneField09", remainAdsCount, aDAwardConfig.ADCntMax)); ;
+        txtTodayAdsCount.text = UIHelper.AppendColor(isShowAds ? TextColType.LightGreen : TextColType.Red, Language.Get("BoneField09", remainAdsCount, aDAwardConfig.ADCntMax)); ;
     }
 
     public void DisplayItemCellList(List<ItemCell> itemCells, int[][] items)

--
Gitblit v1.8.0