From 09bc892c7283df8757a07b646d5af21ddaa263d1 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期四, 06 十一月 2025 18:22:34 +0800
Subject: [PATCH] 164 天子的考验-客户端

---
 Main/System/Tip/ConfirmCancel.cs |   81 ++++++++++++++++++++++++++--------------
 1 files changed, 53 insertions(+), 28 deletions(-)

diff --git a/Main/System/Tip/ConfirmCancel.cs b/Main/System/Tip/ConfirmCancel.cs
index 9a214a9..6fa1683 100644
--- a/Main/System/Tip/ConfirmCancel.cs
+++ b/Main/System/Tip/ConfirmCancel.cs
@@ -257,6 +257,9 @@
     public static string generalItemTip;
     public static string generalItemTip2;
 
+    public static int moneyType;
+    public static int moneyNeedCount;
+
     public static List<Item> getItems { get; private set; }
     public static string replaceItemName;
     /// <summary>
@@ -289,36 +292,56 @@
     }
 
 
+    public static void MoneyIconToggleConfirmByType(ToggleCheckType type, int moneyCnt, int _moneyType, string fullTip, Action func)
+    {
+        if (toggleCheckDict.ContainsKey(type) && toggleCheckDict[type])
+        {
+            func?.Invoke();
+            return;
+        }
 
-    public static string moneyTitle;
-    public static string moneyTopInfo;
-    public static string moneybtnOkText;
-    public static int moneyType;
-    public static int moneyNeedCount;
-    public static ulong moneyHaveCount;
-    public static string moneyToggleText { get; private set; }
-    public static bool moneytoggleOpen { get; private set; }
-    public static bool moneytoggleOpenState { get; private set; }
+        MoneyIconToggleConfirm(moneyCnt, _moneyType, fullTip, Language.Get("ConfirmCancel102"), (bool isOk, bool isToggle) =>
+            {
+                if (isOk)
+                {
+                    func?.Invoke();
+                    toggleCheckDict[type] = isToggle;
+                }
 
-    // public static Action<bool, bool> OnMoneyToggleConfirmAct;
-    // public static void MoneyIconToggleConfirm(string title, string topInfo,string okTxt, int type,
-    //  int needCnt, ulong haveCnt, Action<bool, bool> func, bool toggleOpen = false, string toggleTxt = "", bool toggleOpenState = false)
-    // {
-    //     moneyTitle = title;
-    //     moneyTopInfo = topInfo;
-    //     moneybtnOkText = okTxt;
-    //     moneyType = type;
-    //     moneyNeedCount = needCnt;
-    //     moneyHaveCount = haveCnt;
-    //     moneyToggleText = toggleTxt;
-    //     moneytoggleOpen = toggleOpen;
-    //     moneytoggleOpenState = toggleOpenState;
-    //     OnMoneyToggleConfirmAct = func;
-    //     if (!UIManager.Instance.IsOpened<MoneyIconToggleConfirmWin>())
-    //     {
-    //         UIManager.Instance.OpenWindow<MoneyIconToggleConfirmWin>();
-    //     }
-    // }
+            });
+    }
+
+
+
+    //璐у竵纭妗�:鏈夋樉绀哄嬀閫夌殑
+    public static Action<bool, bool> OnMoneyToggleConfirmAct;
+    public static void MoneyIconToggleConfirm(int moneyCnt, int _moneyType, string content, string toggleTxt, Action<bool, bool> func, bool _toggle = false)
+    {
+        generalContent = content;
+        toggleContent = toggleTxt;
+        OnToggleConfirmEvent = func;
+        toggleOpenState = _toggle;
+        moneyType = _moneyType;
+        moneyNeedCount = moneyCnt;
+        if (!UIManager.Instance.IsOpened<MoneyIconToggleConfirmWin>())
+        {
+            UIManager.Instance.OpenWindow<MoneyIconToggleConfirmWin>();
+        }
+    }
+
+    //璐у竵纭妗�:涓嶆樉绀哄嬀閫夌殑
+    public static void MoneyIconConfirm(int moneyCnt, int _moneyType, string content, Action<bool, bool> func)
+    {
+        generalContent = content;
+        OnToggleConfirmEvent = func;
+        moneyType = _moneyType;
+        moneyNeedCount = moneyCnt;
+        if (!UIManager.Instance.IsOpened<MoneyIconToggleConfirmWin>())
+        {
+            UIManager.Instance.OpenWindow<MoneyIconToggleConfirmWin>();
+        }
+    }
+
 
 }
 
@@ -326,6 +349,8 @@
 {
     Auction = 0, //鎷嶅崠琛�
     WashCancel = 1, //娲楃粌鍙栨秷
+    GoldRush = 2,   //娣橀噾 
+    BoneField = 3,   //鐧介鐩堥噹
 }
 
 

--
Gitblit v1.8.0