From 89343a7a0909e5244a3b69c4db1294de4536243b Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期一, 15 十二月 2025 18:15:22 +0800
Subject: [PATCH] 262 幻境阁系统-客户端 新增仅适用武将解锁的头像和形象的红点移除规则

---
 Main/System/Guild/GuildHawkerWin.cs |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/Main/System/Guild/GuildHawkerWin.cs b/Main/System/Guild/GuildHawkerWin.cs
index b7410ce..89230f1 100644
--- a/Main/System/Guild/GuildHawkerWin.cs
+++ b/Main/System/Guild/GuildHawkerWin.cs
@@ -17,7 +17,7 @@
     [SerializeField] Button cutBtn;
     [SerializeField] Text cutText;
     [SerializeField] Text timeText;
-
+    [SerializeField] UIHeroController heroController;
 
 
 
@@ -38,6 +38,7 @@
         scroller.OnRefreshCell += OnRefreshCell;
         GuildManager.Instance.UpdateZhenbaogeEvent += OnPlayerZBGEvent;
         GlobalTimeEvent.Instance.secondEvent += OnSecondEvent;
+        GlobalTimeEvent.Instance.fiveSecondEvent += OnFiveSecondEvent;
         
         Display();
         CreateScroller();
@@ -55,6 +56,7 @@
         scroller.OnRefreshCell -= OnRefreshCell;
         GuildManager.Instance.UpdateZhenbaogeEvent -= OnPlayerZBGEvent;
         GlobalTimeEvent.Instance.secondEvent -= OnSecondEvent;
+        GlobalTimeEvent.Instance.fiveSecondEvent -= OnFiveSecondEvent;
     }
 
     void OnSecondEvent()
@@ -62,6 +64,12 @@
         timeText.text = Language.Get("Guild_74", TimeUtility.SecondsToShortDHMS((int)(TimeUtility.GetTodayEndTime() - TimeUtility.ServerNow).TotalSeconds));
     }
 
+    int index = 0;
+    void OnFiveSecondEvent()
+    {
+        index++;
+        heroController.PlayAnimation(index % 2 == 0 ? "idle" : "hanhua", true);
+    }
     void OnRefreshCell(ScrollerDataType type, CellView cell)
     {
         var _cell = cell as GuildHawkerCutCell;
@@ -208,9 +216,10 @@
                 return;
             }
 
-            if (GuildManager.Instance.familyZBGActions[1].Value3 == 0 && UIHelper.GetMoneyCnt(GuildManager.Instance.zbgPriceType) < GuildManager.Instance.familyZBGActions[1].Value2)
+            if (GuildManager.Instance.familyZBGActions[1].Value3 == 0 &&
+                !UIHelper.CheckMoneyCount(GuildManager.Instance.zbgPriceType, GuildManager.Instance.familyZBGActions[1].Value2, 2))
             {
-                SysNotifyMgr.Instance.ShowTip("LackMoney", GuildManager.Instance.zbgPriceType);
+                // SysNotifyMgr.Instance.ShowTip("LackMoney", GuildManager.Instance.zbgPriceType);
                 return;
             }
 
@@ -227,7 +236,7 @@
 
 
             ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"),
-            Language.Get("L1135", GuildManager.Instance.zbgPriceType, cutPrice)+ Language.Get("Guild_71"), (bool isOK) =>
+            Language.Get("L1135", UIHelper.GetIconNameWithMoneyType(GuildManager.Instance.zbgPriceType), cutPrice)+ Language.Get("Guild_71"), (bool isOK) =>
                 {
                     if (isOK)
                     {

--
Gitblit v1.8.0